docs: fix incorrect README (#6) #8
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| name: Lint, typecheck, build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| # The committed package-lock.json is generated by npm 11; the npm 10.x | |
| # bundled with Node 22 crashes on it ("Exit handler never called!"). | |
| - name: Align npm version | |
| run: npm install -g npm@11 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: ESLint | |
| run: npx eslint . --max-warnings=0 | |
| - name: TypeScript | |
| run: npx tsc -b | |
| - name: Tests + coverage (min 85%) | |
| run: npm run test:coverage | |
| - name: Build | |
| run: npm run build |