From c60a614258d9886560298f3a3ae0bf23887fc5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Fri, 8 Mar 2024 16:17:42 +0300 Subject: [PATCH] chore(ci): switch to cargo-llvm-cov for code coverage (#260) --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed03d21..7ed3027 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,15 +30,17 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - - name: Setup cargo-tarpaulin - uses: taiki-e/install-action@cargo-tarpaulin - - name: Run tests - run: cargo tarpaulin --out xml --verbose -- --test-threads 1 + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage + run: cargo llvm-cov --lcov --output-path lcov.info -- --test-threads 1 + env: + OUT_DIR: target - name: Upload reports to codecov uses: codecov/codecov-action@v3 with: name: code-coverage-report - file: cobertura.xml + file: lcov.info flags: unit-tests fail_ci_if_error: true verbose: true