Skip to content

Commit

Permalink
ci: tweak vitest to produce coveralls lcov file
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hm committed Jan 13, 2025
1 parent 1452f4c commit 43d5323
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ jobs:
run: |
pnpm install
pnpm install coveralls
pnpm vitest --coverage
pnpm vitest --run --coverage
- name: Report coverage
uses: davelosert/vitest-coverage-report-action@v2
if: always()
with:
comment-on: "pr"
- name: Report coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ./coverage/lcov.info
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/libsodium-wrappers-sumo": "^0.7.8",
"@types/node": "^22.10.5",
"@vitest/coverage-v8": "^2.1.8",
"coveralls": "^3.1.1",
"lefthook": "^1.10.1",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
Expand Down
Loading

0 comments on commit 43d5323

Please sign in to comment.