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