Skip to content

Commit 85f15b7

Browse files
committed
added tarpaulin for code coverage
1 parent 3c84539 commit 85f15b7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/rust.yml

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
run: cargo build --verbose
2121
- name: Run tests
2222
run: cargo test --verbose
23+
- name: Install Tarpaulin.
24+
run: cargo install cargo-tarpaulin
25+
- name: Generate code coverage report.
26+
run:
27+
cargo tarpaulin
28+
--verbose
29+
--all-features
30+
--workspace
31+
--timeout 120
32+
--out Xml
33+
--exclude-files 'src/main.rs'
2334
- name: Upload coverage reports to Codecov
2435
uses: codecov/codecov-action@v3
2536
env:

0 commit comments

Comments
 (0)