Skip to content

Commit bf9ac32

Browse files
committed
fix coverage
1 parent 19e8720 commit bf9ac32

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

.github/workflows/ci.yml

Lines changed: 8 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
@@ -213,39 +210,20 @@ jobs:
213210
npm test
214211
fi
215212
216-
- name: Upload code coverage
213+
- name: Collect code coverage
214+
uses: coverallsapp/github-action@master
217215
if: steps.list_env.outputs.nyc != ''
218-
uses: actions/upload-artifact@v4
219216
with:
220-
name: coverage-node-${{ matrix.node-version }}
221-
path: ./coverage/lcov.info
222-
retention-days: 1
217+
github-token: ${{ secrets.GITHUB_TOKEN }}
218+
flag-name: run-${{ matrix.test_number }}
219+
parallel: true
223220

224221
coverage:
225222
needs: test
226223
runs-on: ubuntu-latest
227-
permissions:
228-
contents: read
229-
checks: write
230224
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
225+
- name: Upload code coverage
226+
uses: coverallsapp/github-action@master
249227
with:
250228
github-token: ${{ secrets.GITHUB_TOKEN }}
251-
file: ./lcov.info
229+
parallel-finished: true

0 commit comments

Comments
 (0)