Skip to content

Commit

Permalink
tests: add LCOV support [beta]
Browse files Browse the repository at this point in the history
  • Loading branch information
li0ard committed Feb 14, 2025
1 parent 55fd4a4 commit 8d58fc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ jobs:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- run: bun i
- run: bun test
- name: Install dependencies
run: bun i
- name: Run tests
run: bun test
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

3 changes: 3 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[test]
coverage = true
coverageReporter = ["text", "lcov"]

0 comments on commit 8d58fc3

Please sign in to comment.