18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
21
- - uses : actions/setup-node@v2.4.0
21
+ - uses : actions/setup-node@v2
22
22
with :
23
- node-version : 14.x
23
+ node-version : 16
24
24
cache : yarn
25
25
26
26
- name : Validate cache
36
36
runs-on : ubuntu-latest
37
37
steps :
38
38
- uses : actions/checkout@v2
39
- - uses : actions/setup-node@v2.4.0
39
+ - uses : actions/setup-node@v2
40
40
with :
41
- node-version : 14.x
41
+ node-version : 16
42
42
cache : yarn
43
43
- name : install
44
44
run : yarn
50
50
runs-on : ubuntu-latest
51
51
steps :
52
52
- uses : actions/checkout@v2
53
- - uses : actions/setup-node@v2.4.0
53
+ - uses : actions/setup-node@v2
54
54
with :
55
- node-version : 14.x
55
+ node-version : 16
56
56
cache : yarn
57
57
- name : install
58
58
run : yarn
@@ -67,14 +67,14 @@ jobs:
67
67
strategy :
68
68
fail-fast : false
69
69
matrix :
70
- node-version : [10.x, 12.x , 14.x, 15.x, 16.x ]
71
- eslint-version : [5, 6, 7]
70
+ node-version : [12 , 14, 16 ]
71
+ eslint-version : [6, 7, '^8.0.0-0' ]
72
72
runs-on : ubuntu-latest
73
73
74
74
steps :
75
75
- uses : actions/checkout@v2
76
76
- name : Use Node.js ${{ matrix.node-version }}
77
- uses : actions/setup-node@v2.4.0
77
+ uses : actions/setup-node@v2
78
78
with :
79
79
node-version : ${{ matrix.node-version }}
80
80
cache : yarn
@@ -84,11 +84,15 @@ jobs:
84
84
yarn add --dev eslint@${{ matrix.eslint-version }}
85
85
- name : run tests
86
86
# only collect coverage on eslint versions that support the suggestions api
87
- run : yarn test --coverage ${{ matrix.eslint-version >= 6 }}
87
+ run :
88
+ yarn test --coverage ${{ matrix.eslint-version >= 6 ||
89
+ matrix.eslint-version = '^8.0.0-0' }}
88
90
env :
89
91
CI : true
90
-
91
- if : ${{ matrix.eslint-version >= 6 }}
92
+ - uses : codecov/codecov-action@v2
93
+ if :
94
+ ${{ matrix.eslint-version >= 6 || matrix.eslint-version = '^8.0.0-0'
95
+ }}
92
96
test-os :
93
97
name : Test on ${{ matrix.os }} using Node.js LTS
94
98
needs : prepare-yarn-cache
@@ -100,9 +104,9 @@ jobs:
100
104
101
105
steps :
102
106
- uses : actions/checkout@v2
103
- - uses : actions/setup-node@v2.4.0
107
+ - uses : actions/setup-node@v2
104
108
with :
105
- node-version : 14.x
109
+ node-version : 16
106
110
cache : yarn
107
111
- name : install
108
112
run : yarn
@@ -117,9 +121,9 @@ jobs:
117
121
runs-on : ubuntu-latest
118
122
steps :
119
123
- uses : actions/checkout@v2
120
- - uses : actions/setup-node@v2.4.0
124
+ - uses : actions/setup-node@v2
121
125
with :
122
- node-version : 14.x
126
+ node-version : 16
123
127
cache : yarn
124
128
- name : install
125
129
run : yarn
@@ -140,9 +144,9 @@ jobs:
140
144
runs-on : ubuntu-latest
141
145
steps :
142
146
- uses : actions/checkout@v2
143
- - uses : actions/setup-node@v2.4.0
147
+ - uses : actions/setup-node@v2
144
148
with :
145
- node-version : 14.x
149
+ node-version : 16
146
150
cache : yarn
147
151
- name : install
148
152
run : yarn
0 commit comments