chore(deps): update actions/setup-node action to v6 #2222
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: tests | |
| on: push | |
| env: | |
| CI: true | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - 18.x # maintainence ends 2025-04-30 | |
| - 20.x # maintainence ends 2026-04-30 | |
| - 22.4.1 # maintainence ends 2027-04-30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| - run: npm run build --if-present | |
| - run: npm test | |
| - run: npm run lint | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.22.2 | |
| - run: npm install | |
| - run: npm run build --if-present | |
| - run: npm run test:coverage | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |