Skip to content

Commit

Permalink
CI: Migrate to cargo-tarpaulin container for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Jul 28, 2024
1 parent a552210 commit e47cf49
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e47cf49

Please sign in to comment.