diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ec28f3cb..589c5277 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,10 +45,12 @@ jobs: - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 + # Nightly is required for code coverage with doctests + # https://github.com/taiki-e/cargo-llvm-cov/issues/2 - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: nightly override: true - uses: abelfodil/protoc-action@v1 with: @@ -56,7 +58,7 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Test and Generate code coverage - run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + run: cargo +nightly llvm-cov --all-features --workspace --lcov --doctests --output-path lcov.info - name: Codecov uses: codecov/codecov-action@v3 with: