Skip to content

Commit ff03e15

Browse files
Add Coveralls
1 parent 510e3fa commit ff03e15

File tree

4 files changed

+5760
-3292
lines changed

4 files changed

+5760
-3292
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,19 @@ jobs:
159159
shell: bash
160160
- name: Test bindings
161161
run: yarn test
162+
163+
- name: Generate coverage report
164+
if: ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
165+
run: yarn coverage
166+
- name: Upload coverage report
167+
if: ${{ matrix.settings.host == 'macos-latest' && matrix.node == '22' }}
168+
env:
169+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
170+
uses: coverallsapp/[email protected]
171+
with:
172+
github-token: ${{ secrets.GITHUB_TOKEN }}
173+
path-to-lcov: coverage/lcov.info
174+
162175
test-linux-binding:
163176
name: Test ${{ matrix.target }} - node@${{ matrix.node }}
164177
needs:

0 commit comments

Comments
 (0)