run npm update #170
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test-node: | |
| name: Run tests | |
| runs-on: macos-latest | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| checks: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: npm ci | |
| - run: npx playwright install | |
| - run: npm test | |
| - name: Report code coverage | |
| uses: koddsson/github-actions-report-lcov@main | |
| with: | |
| coverage-files: coverage/lcov.info | |
| minimum-coverage: 90 | |
| artifact-name: code-coverage-report | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v4 | |
| if: success() || failure() # always run even if the previous step fails | |
| with: | |
| report_paths: './test-results.xml' |