6
6
7
7
jobs :
8
8
test :
9
- runs-on : ubuntu-18 .04
9
+ runs-on : ubuntu-20 .04
10
10
strategy :
11
11
matrix :
12
12
name :
13
- - Node.js 0.6
14
13
- Node.js 0.8
15
14
- Node.js 0.10
16
15
- Node.js 0.12
@@ -31,13 +30,12 @@ jobs:
31
30
- Node.js 15.x
32
31
- Node.js 16.x
33
32
- Node.js 17.x
33
+ - Node.js 18.x
34
+ - Node.js 19.x
35
+ - Node.js 20.x
36
+ - Node.js 21.x
34
37
35
38
include :
36
- - name : Node.js 0.6
37
- node-version : " 0.6"
38
- npm-i : mocha@1.21.5
39
- npm-rm : nyc
40
-
41
39
- name : Node.js 0.8
42
40
node-version : " 0.8"
43
41
npm-i : mocha@2.5.3
@@ -73,19 +71,19 @@ jobs:
73
71
74
72
- name : Node.js 6.x
75
73
node-version : " 6.17"
76
- npm-i : mocha@6.2.2 nyc@14.1.1
74
+ npm-i : mocha@6.2.3 nyc@14.1.1
77
75
78
76
- name : Node.js 7.x
79
77
node-version : " 7.10"
80
- npm-i : mocha@6.2.2 nyc@14.1.1
78
+ npm-i : mocha@6.2.3 nyc@14.1.1
81
79
82
80
- name : Node.js 8.x
83
81
node-version : " 8.17"
84
- npm-i : mocha@7.2.0
82
+ npm-i : mocha@7.2.0 nyc@14.1.1
85
83
86
84
- name : Node.js 9.x
87
85
node-version : " 9.11"
88
- npm-i : mocha@7.2.0
86
+ npm-i : mocha@7.2.0 nyc@14.1.1
89
87
90
88
- name : Node.js 10.x
91
89
node-version : " 10.24"
@@ -108,11 +106,23 @@ jobs:
108
106
node-version : " 15.14"
109
107
110
108
- name : Node.js 16.x
111
- node-version : " 16.14 "
109
+ node-version : " 16.13 "
112
110
113
111
- name : Node.js 17.x
114
112
node-version : " 17.4"
115
113
114
+ - name : Node.js 18.x
115
+ node-version : " 18.20"
116
+
117
+ - name : Node.js 19.x
118
+ node-version : " 19.9"
119
+
120
+ - name : Node.js 20.x
121
+ node-version : " 20.12"
122
+
123
+ - name : Node.js 21.x
124
+ node-version : " 21.7"
125
+
116
126
steps :
117
127
- uses : actions/checkout@v2
118
128
@@ -139,7 +149,15 @@ jobs:
139
149
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
140
150
141
151
- name : Configure npm
142
- run : npm config set shrinkwrap false
152
+ run : |
153
+ if [[ "$(npm config get package-lock)" == "true" ]]; then
154
+ npm config set package-lock false
155
+ else
156
+ npm config set shrinkwrap false
157
+ fi
158
+
159
+ - name : Remove non-test npm modules
160
+ run : npm rm --silent --save-dev csv-parse raw-body stream-to-array
143
161
144
162
- name : Remove npm module(s) ${{ matrix.npm-rm }}
145
163
run : npm rm --silent --save-dev ${{ matrix.npm-rm }}
@@ -190,7 +208,7 @@ jobs:
190
208
uses : coverallsapp/github-action@master
191
209
if : steps.list_env.outputs.nyc != ''
192
210
with :
193
- github-token : ${{ secrets.github_token }}
211
+ github-token : ${{ secrets.GITHUB_TOKEN }}
194
212
flag-name : run-${{ matrix.test_number }}
195
213
parallel : true
196
214
@@ -201,5 +219,5 @@ jobs:
201
219
- name : Upload code coverage
202
220
uses : coverallsapp/github-action@master
203
221
with :
204
- github-token : ${{ secrets.github_token }}
222
+ github-token : ${{ secrets.GITHUB_TOKEN }}
205
223
parallel-finished : true
0 commit comments