@@ -12,45 +12,57 @@ jobs:
1212 name : Lint
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : Checkout
16- uses : actions/checkout@v1
17- with :
18- fetch-depth : 1
19- - name : Checkout submodules
20- run : git submodule update --init
21- - name : Install Node.js
22- uses : actions/setup-node@v1
23- with :
24- node-version : 12
25- - name : Install Packages
26- run : npm install
27- - name : Lint
28- run : npm run -s lint
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ - name : Checkout submodules
18+ run : git submodule update --init
19+ - name : Install Node.js
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : 14
23+ - name : Install Packages
24+ run : npm install
25+ - name : Lint
26+ run : npm run -s lint
2927
3028 test :
3129 name : Test
32-
3330 strategy :
3431 matrix :
35- eslint : [6, 5]
36- node : [13, 12, 10, 8, "8.10.0"]
37- exclude :
38- # Run ESLint 5 on only the LTS.
39- - node : 13
40- eslint : 5
41- - node : 10
42- eslint : 5
43- - node : 8
44- eslint : 5
45- - node : " 8.10.0"
46- eslint : 5
32+ eslint : [7]
33+ node : [14]
34+ os : [ubuntu-latest]
35+ include :
36+ # On other platforms
37+ - eslint : 7
38+ node : 14
39+ os : windows-latest
40+ - eslint : 7
41+ node : 14
42+ os : macos-latest
43+ # On old Node.js versions
44+ - eslint : 7
45+ node : 12
46+ os : ubuntu-latest
47+ - eslint : 7
48+ node : 10
49+ os : ubuntu-latest
50+ # On old ESLint versions
51+ - eslint : 6
52+ node : 14
53+ os : ubuntu-latest
54+ - eslint : 5
55+ node : 14
56+ os : ubuntu-latest
57+ # On the minimum supported ESLint/Node.js version
58+ - eslint : 5
59+ node : 8.10.0
60+ os : ubuntu-latest
4761
48- runs-on : ubuntu-latest
62+ runs-on : ${{ matrix.os }}
4963 steps :
5064 - name : Checkout
51- uses : actions/checkout@v1
52- with :
53- fetch-depth : 1
65+ uses : actions/checkout@v2
5466 - name : Checkout submodules
5567 run : git submodule update --init
5668 - name : Install Node.js v${{ matrix.node }}
6072 - name : Install Packages
6173 run : npm install
6274 - name : Install ESLint v${{ matrix.eslint }}
63- run : |
64- if [ ${{ matrix.eslint }} -eq 6 ]; then
65- cd test/fixtures/eslint
66- npm install
67- else
68- npm install --no-save eslint@5.16.0
69- cd test/fixtures/eslint
70- git checkout v5.16.0
71- npm install eslint-utils@1.4.0
72- npm install
73- fi
75+ run : node scripts/ci-install-eslint ${{ matrix.eslint }}
7476 - name : Build
7577 run : npm run -s build
7678 - name : Test
0 commit comments