Skip to content

Commit

Permalink
Generate coverage report with cargo-llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Feb 5, 2024
1 parent 05767ef commit aa2c56c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,15 @@ jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt install -y cmake clang-15
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly install cargo-llvm-cov --locked
- run: cargo +nightly llvm-cov --doctests --lcov --output-path lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: false
fail_ci_if_error: true

0 comments on commit aa2c56c

Please sign in to comment.