Skip to content

Commit ea83bcb

Browse files
committed
ci: add codecov integration for test coverage tracking
- Added `.github/workflows/coverage.yml` to automate test coverage reports - Workflows run on every push and PR to `master` and `unstable` - Uploads data to Codecov Signed-off-by: Ivin Joel Abraham <[email protected]>
1 parent c6d0290 commit ea83bcb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/test_coverage.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Code Coverage
2+
3+
on:
4+
push:
5+
branches: [ master, unstable ]
6+
pull_request:
7+
branches: [ master, unstable ]
8+
9+
jobs:
10+
test-coverage-upload:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }}
16+
17+
- name: Install cargo-tarpaulin
18+
run: cargo install cargo-tarpaulin
19+
20+
- name: Generate coverage report
21+
run: cargo tarpaulin --verbose --out lcov
22+
23+
- name: Upload coverage to Codecov
24+
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)