build(deps): bump actions/setup-node from 6 to 7 #202
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: | |
| pull_request: | |
| # CI only needs to read repository contents. | |
| permissions: | |
| contents: read | |
| jobs: | |
| matrix-test: | |
| name: test (${{ matrix.os }}, ${{ matrix.node }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| node: [20, 22, 24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - name: Install | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test | |
| run: npm test | |
| - name: Build | |
| run: npm run build | |
| # Single required status check for the main-branch ruleset; gates on the matrix. | |
| test: | |
| needs: matrix-test | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check matrix result | |
| run: test "${{ needs.matrix-test.result }}" = "success" |