From 6f19eb8674c5c2370fbea89e1393a4a1e5c3df28 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 5 May 2024 22:31:08 +0200 Subject: [PATCH] Use llvm-cov for code coverage --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 285868a..73f176f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,16 +93,15 @@ jobs: coverage: name: Coverage runs-on: ubuntu-latest - container: - image: xd009642/tarpaulin:latest - options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - name: Run cargo-tarpaulin - run: cargo tarpaulin --out Lcov -- --test-threads 1 + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - name: upload to Coveralls uses: coverallsapp/github-action@master