Skip to content

Commit 651fbff

Browse files
committed
fix coverage
1 parent 19e8720 commit 651fbff

File tree

1 file changed

+14
-30
lines changed

1 file changed

+14
-30
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
- Node.js 0.8
4343
- Node.js 0.10
4444
- Node.js 0.12
45-
- io.js 1.x
46-
- io.js 2.x
47-
- io.js 3.x
4845
- Node.js 4.x
4946
- Node.js 5.x
5047
- Node.js 6.x
@@ -164,12 +161,18 @@ jobs:
164161
with:
165162
node-version: ${{ matrix.node-version }}
166163

164+
- name OpenSSL npm
165+
run: npm install -g npm@latest
166+
167167
- name: Npm version fixes
168168
if: ${{matrix.npm-version != ''}}
169169
run: npm install -g ${{ matrix.npm-version }}
170170

171171
- name: Configure npm
172172
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
173176
npm config set package-lock false
174177
175178
- name: Remove npm module(s) ${{ matrix.npm-rm }}
@@ -213,39 +216,20 @@ jobs:
213216
npm test
214217
fi
215218
216-
- name: Upload code coverage
219+
- name: Collect code coverage
220+
uses: coverallsapp/github-action@master
217221
if: steps.list_env.outputs.nyc != ''
218-
uses: actions/upload-artifact@v4
219222
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
223226

224227
coverage:
225228
needs: test
226229
runs-on: ubuntu-latest
227-
permissions:
228-
contents: read
229-
checks: write
230230
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
249233
with:
250234
github-token: ${{ secrets.GITHUB_TOKEN }}
251-
file: ./lcov.info
235+
parallel-finished: true

0 commit comments

Comments
 (0)