Skip to content

Commit e8b618f

Browse files
committed
fix coverage
1 parent 19e8720 commit e8b618f

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 14 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
@@ -234,18 +231,20 @@ jobs:
234231
shell: bash
235232
run: sudo apt-get -y install lcov
236233

237-
- name: Collect coverage reports
238-
uses: actions/download-artifact@v4
234+
- name: Collect code coverage
235+
uses: coverallsapp/github-action@master
236+
if: steps.list_env.outputs.nyc != ''
239237
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
238+
github-token: ${{ secrets.GITHUB_TOKEN }}
239+
flag-name: run-${{ matrix.test_number }}
240+
parallel: true
246241

247-
- name: Upload coverage report
248-
uses: coverallsapp/github-action@v2
242+
coverage:
243+
needs: test
244+
runs-on: ubuntu-latest
245+
steps:
246+
- name: Upload code coverage
247+
uses: coverallsapp/github-action@master
249248
with:
250249
github-token: ${{ secrets.GITHUB_TOKEN }}
251-
file: ./lcov.info
250+
parallel-finished: true

0 commit comments

Comments
 (0)