Skip to content

Commit 3667566

Browse files
chore: test all supported ESLint versions (#196)
1 parent ecae4fe commit 3667566

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v1
15+
uses: actions/checkout@v2
1616
- name: Install Node.js
1717
uses: actions/setup-node@v2
1818
- name: Install Packages
@@ -27,23 +27,33 @@ jobs:
2727
strategy:
2828
matrix:
2929
os: [ubuntu-latest]
30-
node-version: ["8.10.0", 8.x, 10.x, 12.x, 13.x, 14.x]
30+
eslint: [6, 7]
31+
node: ['8.10.0', 8, 10, 12, 14, 16]
32+
exclude:
33+
- eslint: 7
34+
node: 8
35+
- eslint: 7
36+
node: '8.10.0'
3137
include:
32-
- os: windows-latest
33-
node: "12.x"
34-
- os: macOS-latest
35-
node: "12.x"
38+
- os: windows-latest
39+
eslint: 7
40+
node: 16
41+
- os: macOS-latest
42+
eslint: 7
43+
node: 16
3644
runs-on: ${{ matrix.os }}
3745
steps:
3846
- name: Checkout
39-
uses: actions/checkout@v1
40-
- name: Install Node.js ${{ matrix.node-version }}
47+
uses: actions/checkout@v2
48+
- name: Install Node.js ${{ matrix.node }}
4149
uses: actions/setup-node@v2
4250
with:
43-
node-version: ${{ matrix.node-version }}
51+
node-version: ${{ matrix.node }}
4452
- name: Install Packages
4553
run: npm install
4654
env:
4755
CI: true
56+
- name: Install ESLint@${{ matrix.eslint }}
57+
run: npm install eslint@${{ matrix.eslint }}
4858
- name: Test
4959
run: npm run test-cov

0 commit comments

Comments
 (0)