Skip to content

Commit c64d3b0

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 c64d3b0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
- name: Install cargo-tarpaulin
15+
run: cargo install cargo-tarpaulin
16+
17+
- name: Generate coverage report
18+
run: cargo tarpaulin --verbose --out lcov
19+
20+
- name: Upload coverage to Codecov
21+
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)