|
31 | 31 | strategy:
|
32 | 32 | matrix:
|
33 | 33 | node: [18, 20, 21, 'lts/*']
|
34 |
| - eslint: [9] |
35 |
| - include: |
36 |
| - # On old ESLint version |
37 |
| - - node: 18 |
38 |
| - eslint: 8 |
39 |
| - |
40 | 34 | runs-on: ubuntu-latest
|
41 | 35 | steps:
|
42 | 36 | - name: Checkout
|
|
46 | 40 | with:
|
47 | 41 | node-version: ${{ matrix.node }}
|
48 | 42 | - name: Install Packages
|
49 |
| - run: npm install -f |
50 |
| - - name: Install ESLint v${{ matrix.eslint }} |
51 |
| - run: npm install --save-dev eslint@${{ matrix.eslint }} -f |
| 43 | + run: npm install |
| 44 | + - name: Test |
| 45 | + run: npm test |
| 46 | + |
| 47 | + test-with-eslint-v8: |
| 48 | + name: Test with ESLint v8 |
| 49 | + runs-on: ubuntu-latest |
| 50 | + steps: |
| 51 | + - name: Checkout |
| 52 | + uses: actions/checkout@v4 |
| 53 | + - name: Install Node.js v18 |
| 54 | + uses: actions/setup-node@v4 |
| 55 | + with: |
| 56 | + node-version: 18 |
| 57 | + - name: Install Packages |
| 58 | + run: npm install |
| 59 | + - name: Install ESLint v8 |
| 60 | + run: npm install --save-dev eslint@8 --force |
52 | 61 | - name: Test
|
53 | 62 | run: npm test
|
54 | 63 |
|
|
61 | 70 | - name: Install Node.js
|
62 | 71 | uses: actions/setup-node@v4
|
63 | 72 | - name: Install Packages
|
64 |
| - run: npm install -f |
| 73 | + run: npm install |
65 | 74 | - name: Uninstall @stylistic/eslint-plugin
|
66 |
| - run: npm uninstall -D @stylistic/eslint-plugin |
| 75 | + run: npm uninstall @stylistic/eslint-plugin |
| 76 | + - name: Test |
| 77 | + run: npm test |
| 78 | + |
| 79 | + test-with-old-eslint-stylistic: |
| 80 | + name: Test with old ESLint Stylistic |
| 81 | + strategy: |
| 82 | + matrix: |
| 83 | + stylistic: [2, 3, 4] |
| 84 | + runs-on: ubuntu-latest |
| 85 | + steps: |
| 86 | + - name: Checkout |
| 87 | + uses: actions/checkout@v4 |
| 88 | + - name: Install Node.js |
| 89 | + uses: actions/setup-node@v4 |
| 90 | + - name: Install Packages |
| 91 | + run: npm install |
| 92 | + - name: Install @stylistic/eslint-plugin v${{ matrix.stylistic }} |
| 93 | + run: npm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force |
| 94 | + - name: Test |
| 95 | + run: npm test |
| 96 | + |
| 97 | + test-with-typescript-eslint-v7: |
| 98 | + name: Test with typescript-eslint v7 |
| 99 | + runs-on: ubuntu-latest |
| 100 | + steps: |
| 101 | + - name: Checkout |
| 102 | + uses: actions/checkout@v4 |
| 103 | + - name: Install Node.js |
| 104 | + uses: actions/setup-node@v4 |
| 105 | + - name: Install Packages |
| 106 | + run: npm install |
| 107 | + - name: Install @typescript-eslint/parser v7 |
| 108 | + run: npm install -D @typescript-eslint/parser@7 --force |
67 | 109 | - name: Test
|
68 | 110 | run: npm test
|
0 commit comments