Skip to content

Commit

Permalink
Add doctest support into coverage (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
awong-dev authored Apr 13, 2024
1 parent e5129f0 commit 18dfe4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# Nighty needed for --doctests support. See https://github.com/taiki-e/cargo-llvm-cov/issues/2
- uses: dtolnay/rust-toolchain@nightly
- name: Cache cargo build
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
run: cargo llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 18dfe4e

Please sign in to comment.