42
42
- Node.js 0.8
43
43
- Node.js 0.10
44
44
- Node.js 0.12
45
- - io.js 1.x
46
- - io.js 2.x
47
- - io.js 3.x
48
45
- Node.js 4.x
49
46
- Node.js 5.x
50
47
- Node.js 6.x
@@ -164,12 +161,18 @@ jobs:
164
161
with :
165
162
node-version : ${{ matrix.node-version }}
166
163
164
+ - name OpenSSL npm
165
+ run : npm install -g npm@latest
166
+
167
167
- name : Npm version fixes
168
168
if : ${{matrix.npm-version != ''}}
169
169
run : npm install -g ${{ matrix.npm-version }}
170
170
171
171
- name : Configure npm
172
172
run : |
173
+ if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
174
+ npm config set strict-ssl false
175
+ fi
173
176
npm config set package-lock false
174
177
175
178
- name : Remove npm module(s) ${{ matrix.npm-rm }}
@@ -213,39 +216,20 @@ jobs:
213
216
npm test
214
217
fi
215
218
216
- - name : Upload code coverage
219
+ - name : Collect code coverage
220
+ uses : coverallsapp/github-action@master
217
221
if : steps.list_env.outputs.nyc != ''
218
- uses : actions/upload-artifact@v4
219
222
with :
220
- name : coverage-node- ${{ matrix.node-version }}
221
- path : ./coverage/lcov.info
222
- retention-days : 1
223
+ github-token : ${{ secrets.GITHUB_TOKEN }}
224
+ flag-name : run-${{ matrix.test_number }}
225
+ parallel : true
223
226
224
227
coverage :
225
228
needs : test
226
229
runs-on : ubuntu-latest
227
- permissions :
228
- contents : read
229
- checks : write
230
230
steps :
231
- - uses : actions/checkout@v4
232
-
233
- - name : Install lcov
234
- shell : bash
235
- run : sudo apt-get -y install lcov
236
-
237
- - name : Collect coverage reports
238
- uses : actions/download-artifact@v4
239
- with :
240
- path : ./coverage
241
- pattern : coverage-node-*
242
-
243
- - name : Merge coverage reports
244
- shell : bash
245
- run : find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
246
-
247
- - name : Upload coverage report
248
- uses : coverallsapp/github-action@v2
231
+ - name : Upload code coverage
232
+ uses : coverallsapp/github-action@master
249
233
with :
250
234
github-token : ${{ secrets.GITHUB_TOKEN }}
251
- file : ./lcov.info
235
+ parallel-finished : true
0 commit comments