Skip to content

Commit 53e07aa

Browse files
Add cargo-tarpaulin to CI (#87)
* Initial plan * Add cargo-tarpaulin coverage job to CI workflow Co-authored-by: michaelsproul <4452260+michaelsproul@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: michaelsproul <4452260+michaelsproul@users.noreply.github.com>
1 parent ebbfd62 commit 53e07aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test-suite.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,20 @@ jobs:
4949
- name: Check fuzzer targets
5050
if: matrix.os != 'windows-latest'
5151
run: cargo +nightly check --manifest-path fuzz/Cargo.toml --all-targets
52+
coverage:
53+
name: cargo-tarpaulin
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- name: Get latest version of stable Rust
58+
run: rustup update stable
59+
- name: Install cargo-tarpaulin
60+
uses: taiki-e/install-action@cargo-tarpaulin
61+
- name: Check code coverage with cargo-tarpaulin
62+
run: cargo-tarpaulin --workspace --all-features --out xml
63+
- name: Upload to codecov.io
64+
uses: codecov/codecov-action@v4
65+
with:
66+
fail_ci_if_error: false
67+
token: ${{ secrets.CODECOV_TOKEN }}
68+
informational: true

0 commit comments

Comments
 (0)