Skip to content

Commit dd2a4fa

Browse files
authored
Add code coverage (#3)
* Add code coverage * Try v3
1 parent b2b04e1 commit dd2a4fa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test-suite.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,18 @@ jobs:
3131
run: rustup update stable
3232
- name: Run tests
3333
run: cargo test --release
34+
coverage:
35+
runs-on: ubuntu-latest
36+
name: cargo-tarpaulin
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Get latest version of stable Rust
40+
run: rustup update stable
41+
- name: Install cargo-tarpaulin
42+
uses: taiki-e/install-action@cargo-tarpaulin
43+
- name: Check code coverage with cargo-tarpaulin
44+
run: cargo-tarpaulin --workspace --all-features --out xml
45+
- name: Upload to codecov.io
46+
uses: codecov/codecov-action@v3
47+
with:
48+
fail_ci_if_error: true

0 commit comments

Comments
 (0)