fix: correct event name check in release workflow #682
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] | |
| 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 }} | |
| - name: Run tests | |
| run: | | |
| if [ "${{ matrix.eslint-version }}" = "9" ]; then | |
| npm run build && npm run spec -- --testPathIgnorePatterns="test/e2e-repo.spec.ts|test/flat-config-typing.spec.ts" | |
| else | |
| npm test | |
| fi | |
| - name: Run e2e tests | |
| # Skip e2e tests for ESLint 9 due to API incompatibilities | |
| if: matrix.eslint-version != '9' | |
| run: npm run spec:e2e |