build(deps-dev): bump eslint from 8.57.0 to 9.14.0 #4184
This file contains 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-ignore: | |
- 'dependabot/**' | |
pull_request: | |
env: | |
FORCE_COLOR: 2 | |
NODE_COV: lts/* # The Node.js version to run coveralls on | |
permissions: | |
contents: read | |
jobs: | |
run: | |
permissions: | |
checks: write # for coverallsapp/github-action to create new checks | |
contents: read # for actions/checkout to fetch code | |
name: Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18 | |
- 20 | |
- 22 | |
- lts/* | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '${{ matrix.node }}' | |
cache: 'npm' | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run test:vi | |
if: matrix.node != env.NODE_COV | |
- name: Run tests with coverage | |
run: npm run test:vi -- --coverage | |
if: matrix.node == env.NODE_COV | |
- name: Run Coveralls | |
uses: coverallsapp/[email protected] | |
if: matrix.node == env.NODE_COV | |
continue-on-error: true | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' |