From e47cf49b3ecccc588903388ed3ceed281431d1f7 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sun, 28 Jul 2024 20:44:09 +0000 Subject: [PATCH] CI: Migrate to `cargo-tarpaulin` container for code coverage --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29dc13c8..1217a046 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,6 +70,9 @@ 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 @@ -77,12 +80,16 @@ jobs: 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/tarpaulin@v0.1 - 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/codecov-action@v4.4.1 with: