deps updated #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test PR | |
'on': pull_request | |
jobs: | |
install-and-test: | |
name: 🛠️ Install & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🗜️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🗜️ Setup node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
registry-url: 'https://registry.npmjs.org' | |
- name: 🛠️ Install | |
uses: ./.github/actions/cached-deps | |
- name: 🧹 Lint | |
run: yarn lint | |
- name: 🛠️ Sync versions | |
run: yarn script:sync-projects | |
- name: 🧪 Run tests | |
run: npx jest --ci --json --coverage --testLocationInResults --outputFile=coverage/report.json | |
- name: 🧪 Create coverage report markdown | |
uses: ArtiomTr/jest-coverage-report-action@v2 | |
id: coverage | |
with: | |
prnumber: ${{ steps.findPr.outputs.number }} | |
coverage-file: coverage/report.json | |
package-manager: yarn | |
custom-title: 🧪 Unit tests | |
threshold: 80 | |
skip-step: all | |
output: report-markdown | |
- name: 💬 Create coverage report comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
message: ${{ steps.coverage.outputs.report }} | |
- name: ⬆️ Upload coverage reports | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
verbose: true | |
dry_run: true | |
- name: 📦 Build demo app | |
run: yarn build:demo --base-href https://celtian.github.io/ngx-cut/ | |
- name: 📦 Build ngx-cut | |
run: yarn build |