Skip to content

Commit 2b48f95

Browse files
ivinjabrahamDavid Tadokoro
authored andcommitted
workflows: coverage: 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 <ivinjabraham@gmail.com> Signed-off-by: David Tadokoro <davidbtadokoro@usp.br>
1 parent 38c1c59 commit 2b48f95

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/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, ivinjabraham-add-code-cov ]
6+
pull_request:
7+
branches: [ master, unstable ]
8+
9+
jobs:
10+
coverage:
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 --out lcov
19+
20+
- name: Upload coverage to Codecov
21+
uses: codecov/codecov-action@v4
22+
with:
23+
files: lcov.info
24+
fail_ci_if_error: true

0 commit comments

Comments
 (0)