-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Migrate to
cargo-tarpaulin
container for code coverage
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,19 +70,26 @@ jobs: | |
codecov: | ||
name: Code coverage | ||
runs-on: ubuntu-latest | ||
container: | ||
image: xd009642/tarpaulin:develop-nightly | ||
options: --security-opt seccomp=unconfined | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
id: toolchain | ||
- run: rustup override set ${{steps.toolchain.outputs.name}} | ||
- name: Install linux build dependencies | ||
run: sudo apt update && sudo apt install libfuse-dev | ||
run: apt update && apt -y install libfuse-dev | ||
- name: Generate coverage report | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: '0.19.1' | ||
args: --workspace --release --all-features --timeout 180 --out Xml | ||
run: > | ||
cargo tarpaulin | ||
--engine llvm | ||
--workspace | ||
--release | ||
--all-features | ||
--timeout 180 | ||
--out xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|