From e3120839fad79c75e163d8fe8be93809578c02e5 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 4 Nov 2024 09:33:44 +0100 Subject: [PATCH] Switch to lcov code coverage Signed-off-by: Sascha Grunert --- .github/workflows/ci.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 988de4afb4..6c83c003de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -270,23 +270,14 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: .github/install-deps - - name: Select Toolchain - uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a - with: - toolchain: nightly - components: rustfmt - - name: Unit tests - run: cargo test --no-fail-fast - env: - CARGO_INCREMENTAL: "0" - RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests" - RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests" - - name: Coverage - uses: actions-rs/grcov@770fa904bcbfc50da498080d1511da7388e6ddc6 # v0.1.6 - with: - config: .github/grcov.yml + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage + run: cargo llvm-cov --all-features --lcov --output-path lcov.info - name: Upload Results uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 + with: + files: lcov.info test-integration: needs: release-static