feat: eslint 10 support #685
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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| eslint-version: [8, 9, 10] | |
| name: Test (Node 22, ESLint ${{ matrix.eslint-version }}) | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install ESLint ${{ matrix.eslint-version }} | |
| run: npm i -D eslint@${{ matrix.eslint-version }} --legacy-peer-deps | |
| - name: Run tests | |
| run: | | |
| if [ "${{ matrix.eslint-version }}" = "8" ]; then | |
| npm test | |
| else | |
| npm run build && npm run spec -- --testPathIgnorePatterns="test/e2e-repo.spec.ts|test/flat-config-typing.spec.ts" | |
| fi | |
| - name: Run e2e tests | |
| # Skip e2e tests for ESLint 9+ due to API incompatibilities | |
| if: matrix.eslint-version == '8' | |
| run: npm run spec:e2e |