Skip to content

Commit

Permalink
chore: add coverage report (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Dec 17, 2024
1 parent 348dd89 commit b6498ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ jobs:
- run: bun install
- run: bun lint
- run: bun tsc
- run: bun test
- run: bun test:coverage
- uses: barecheck/[email protected]
with:
barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_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 # always enable coverage
coverageReporter = ["text", "lcov"] # default ["text"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"prepare": "husky",
"start": "bun run index.ts",
"test": "bun test",
"test:coverage": "bun test --coverage",
"lint": "bunx @biomejs/biome lint",
"tsc": "bunx tsc"
}
Expand Down

0 comments on commit b6498ba

Please sign in to comment.