From ba29969410438287f4820565948f267707bc713e Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Sat, 19 Mar 2022 08:20:58 +0000 Subject: [PATCH] use llvm-cov (#50) --- .github/workflows/coverage.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 53191de..af034d4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,13 +19,15 @@ jobs: toolchain: nightly profile: minimal override: true + components: llvm-tools-preview - - name: Run cargo-tarpaulin - uses: actions-rs/tarpaulin@v0.1 - with: - args: --all-features --tests + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Run llvm-cov + run: cargo llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info - - name: Upload to codecov.io - uses: codecov/codecov-action@v2.1.0 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 with: - token: ${{secrets.CODECOV_TOKEN}} + files: lcov.info