Skip to content

Commit df0b191

Browse files
committed
Add test job for old ESLint Stylistic versions
1 parent ccaf34c commit df0b191

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,25 @@ jobs:
7272
- name: Install Packages
7373
run: npm install
7474
- name: Uninstall @stylistic/eslint-plugin
75-
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
7694
- name: Test
7795
run: npm test
7896

@@ -86,7 +104,7 @@ jobs:
86104
uses: actions/setup-node@v4
87105
- name: Install Packages
88106
run: npm install
89-
- name: Install @typescript-eslint/parser@7
90-
run: npm install -D @typescript-eslint/parser@7 -f
107+
- name: Install @typescript-eslint/parser v7
108+
run: npm install -D @typescript-eslint/parser@7 --force
91109
- name: Test
92110
run: npm test

0 commit comments

Comments
 (0)