Skip to content

Commit dc1c4a4

Browse files
Change to use --coverage
1 parent 2632910 commit dc1c4a4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ jobs:
158158
run: ls -R .
159159
shell: bash
160160
- name: Test bindings
161-
run: yarn test
162-
163-
- name: Generate coverage report
164-
if: ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
165-
run: yarn coverage
161+
run: yarn test --coverage
166162
- name: Upload coverage report
167163
if: ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
168164
env:
@@ -171,6 +167,7 @@ jobs:
171167
with:
172168
github-token: ${{ secrets.GITHUB_TOKEN }}
173169
path-to-lcov: coverage/lcov.info
170+
parallel: true
174171

175172
test-linux-binding:
176173
name: Test ${{ matrix.target }} - node@${{ matrix.node }}
@@ -238,6 +235,18 @@ jobs:
238235
image: ${{ steps.docker.outputs.IMAGE }}
239236
options: '-v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}'
240237
run: yarn test
238+
coverage:
239+
name: Coverage
240+
runs-on: ubuntu-latest
241+
needs: [test-macOS-windows-binding, test-linux-binding]
242+
steps:
243+
- name: Upload coverage report
244+
env:
245+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
246+
uses: coverallsapp/[email protected]
247+
with:
248+
github-token: ${{ secrets.GITHUB_TOKEN }}
249+
parallel-finished: true
241250
publish:
242251
name: Publish
243252
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)