Bump actions/setup-node from 4 to 6 #4
Workflow file for this run
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: [trunk, main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Lint, typecheck, test, build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| if: matrix.os == 'ubuntu-latest' | |
| - run: npm run typecheck | |
| - run: npm test | |
| - run: npm run build | |
| - name: Verify dist/ is in sync | |
| if: matrix.os == 'ubuntu-latest' | |
| shell: bash | |
| run: | | |
| if ! git diff --exit-code --quiet dist/; then | |
| echo "::error::dist/ is out of sync. Run 'npm run build' and commit the result." | |
| git --no-pager diff dist/ | head -100 | |
| exit 1 | |
| fi | |
| audit: | |
| name: npm audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm audit --omit=dev |