Skip to content

Commit 661b57c

Browse files
committed
chore(CI): simplify testing strategy
1 parent 21838c6 commit 661b57c

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,35 @@ on:
1010
jobs:
1111
test:
1212
name: Test
13-
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
node: [12.x, 10.x, 8.x]
15+
os: [ubuntu-latest]
16+
eslint: [6]
17+
node: [8, 10, 12, 14, 16, 18]
18+
include:
19+
# On other platforms
20+
- os: windows-latest
21+
node: 18
22+
- os: macos-latest
23+
node: 18
24+
# On the minimum supported ESLint/Node.js version
25+
- eslint: 6.6.0
26+
node: 8.10.0
27+
28+
runs-on: ${{ matrix.os }}
1729
steps:
1830
- name: Checkout
19-
uses: actions/checkout@v1
20-
with:
21-
fetch-depth: 1
31+
uses: actions/checkout@v3
2232
- name: Install Node.js ${{ matrix.node }}
23-
uses: actions/setup-node@v1
33+
uses: actions/setup-node@v3
2434
with:
2535
node-version: ${{ matrix.node }}
2636
- name: Install Packages
2737
run: npm install
38+
env:
39+
CI: true
40+
- name: Install ESLint@${{ matrix.eslint }}
41+
run: npm install eslint@${{ matrix.eslint }}
2842
- name: Test
2943
run: npm test
3044
- name: Send Coverage

0 commit comments

Comments
 (0)