Skip to content

Commit 4e71b40

Browse files
committed
ci: add coverage reporting job to GitHub Actions workflow
- Add dedicated coverage job that runs tests with text and LCOV reporters - Upload LCOV coverage reports to Codecov for tracking and badge generation - Run on Ubuntu latest for consistent coverage metrics - Complements existing build and lint jobs in CI pipeline Signed-off-by: leocavalcante <leo@cavalcante.dev>
1 parent aafd918 commit 4e71b40

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,26 @@ jobs:
4545

4646
- name: Check formatting and lint
4747
run: bunx biome check src/ tests/
48+
49+
coverage:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
54+
- name: Setup Bun
55+
uses: oven-sh/setup-bun@v2
56+
with:
57+
bun-version: latest
58+
59+
- name: Install dependencies
60+
run: bun install
61+
62+
- name: Generate coverage report
63+
run: bun test --coverage --coverage-reporter=text --coverage-reporter=lcov
64+
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v4
67+
with:
68+
files: ./coverage/lcov.info
69+
flags: unittests
70+
name: codecov-umbrella

0 commit comments

Comments
 (0)