Skip to content

Commit

Permalink
Run code coverage only once for the stable version of rust
Browse files Browse the repository at this point in the history
  • Loading branch information
agokarn committed Nov 24, 2024
1 parent 71ebc0e commit 919fe5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ jobs:
cargo clippy --tests --no-default-features --features ${{ matrix.hpke }},client,server
- name: Install cargo-llvm-cov
if: ${{ success() || failure() }}
if: matrix.rust == 'stable'
run: |
cargo install cargo-llvm-cov
- name: Generate coverage report
if: ${{ success() || failure() }}
if: matrix.rust == 'stable'
run: |
cargo llvm-cov --workspace --cobertura --output-path target/cobertura.xml -- --test --test-threads=1
cargo llvm-cov --features ${{ matrix.hpke }},client,server --cobertura --output-path target/cobertura.xml -- --test --test-threads=1
- name: Upload coverage artifact
if: ${{ success() || failure() }}
if: matrix.rust == 'stable'
uses: actions/upload-artifact@v4
with:
name: coverage-report
Expand Down

0 comments on commit 919fe5d

Please sign in to comment.