npm audit fix #7
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: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - run: npm ci | |
| - name: Lint (Biome) | |
| run: npx biome check | |
| - name: Typecheck (root) | |
| run: npx tsc --noEmit | |
| - name: Typecheck (web) | |
| run: cd web && npm ci && npx tsc -b | |
| - name: Dead code (Knip) | |
| run: npx knip | |
| - name: Unit tests | |
| run: npm run test:unit |