@@ -13,100 +13,50 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v1
17
- with :
18
- fetch-depth : 1
16
+ uses : actions/checkout@v2
19
17
- name : Install Node.js
20
- uses : actions/setup-node@v1
18
+ uses : actions/setup-node@v2
21
19
with :
22
- node : 12.x
20
+ node-version : 16
23
21
- name : Install Packages
24
22
run : npm install
25
23
- name : Lint
26
24
run : npm run -s lint
27
25
28
26
test :
29
27
name : Test
30
-
31
28
strategy :
32
29
matrix :
33
- os : [ubuntu-latest, windows-latest, macOS-latest]
34
- eslint : [6.x, 5.x]
35
- node : [13.x, 12.x, 10.x, 8.x]
36
- exclude :
37
- # On Windows, run tests with only the latest LTS environments.
38
- - os : windows-latest
39
- eslint : 6.x
40
- node : 13.x
41
- - os : windows-latest
42
- eslint : 6.x
43
- node : 10.x
44
- - os : windows-latest
45
- eslint : 6.x
46
- node : 8.x
30
+ os : [ubuntu-latest]
31
+ eslint : [6]
32
+ node : [8, 10, 12, 14, 16]
33
+ include :
34
+ # On other platforms
47
35
- os : windows-latest
48
- eslint : 5.x
49
- node : 13.x
50
- - os : windows-latest
51
- eslint : 5.x
52
- node : 12.x
53
- - os : windows-latest
54
- eslint : 5.x
55
- node : 10.x
56
- - os : windows-latest
57
- eslint : 5.x
58
- node : 8.x
59
- # On macOS, run tests with only the latest LTS environments.
60
- - os : macOS-latest
61
- eslint : 6.x
62
- node : 13.x
63
- - os : macOS-latest
64
- eslint : 6.x
65
- node : 10.x
66
- - os : macOS-latest
67
- eslint : 6.x
68
- node : 8.x
69
- - os : macOS-latest
70
- eslint : 5.x
71
- node : 13.x
72
- - os : macOS-latest
73
- eslint : 5.x
74
- node : 12.x
75
- - os : macOS-latest
76
- eslint : 5.x
77
- node : 10.x
78
- - os : macOS-latest
79
- eslint : 5.x
80
- node : 8.x
81
- # Run ESLint 5.x tests on only the latest LTS Node.
82
- - os : ubuntu-latest
83
- eslint : 5.x
84
- node : 13.x
85
- - os : ubuntu-latest
86
- eslint : 5.x
87
- node : 10.x
88
- - os : ubuntu-latest
89
- eslint : 5.x
90
- node : 8.x
36
+ node : 16
37
+ - os : macos-latest
38
+ node : 16
39
+ # On old ESLint versions
40
+ - eslint : 5
41
+ node : 16
42
+ # On the minimum supported ESLint/Node.js version
43
+ - eslint : 5.16.0
44
+ node : 8.10.0
91
45
92
46
runs-on : ${{ matrix.os }}
93
47
steps :
94
48
- name : Checkout
95
- uses : actions/checkout@v1
96
- with :
97
- fetch-depth : 1
49
+ uses : actions/checkout@v2
98
50
- name : Install Node.js ${{ matrix.node }}
99
- uses : actions/setup-node@v1
51
+ uses : actions/setup-node@v2
100
52
with :
101
53
node-version : ${{ matrix.node }}
102
54
- name : Install Packages
103
55
run : npm install
104
- - name : Install ESLint ${{ matrix.eslint }}
105
- # We need to execute this command twice because of npm's bug.
106
- # See also: https://npm.community/t/error-node-modules-staging-eslint-e7cf6846-node-modules-eslint
107
- run : |
108
- npm install --no-save eslint@${{ matrix.eslint }}
109
- npm install --no-save eslint@${{ matrix.eslint }}
56
+ env :
57
+ CI : true
58
+ - name : Install ESLint@${{ matrix.eslint }}
59
+ run : npm install eslint@${{ matrix.eslint }}
110
60
- name : Test
111
61
run : npm run -s test:ci
112
62
- name : Send Coverage
0 commit comments