Skip to content

Commit

Permalink
Add code coverage.
Browse files Browse the repository at this point in the history
Remove deprecated version of upload-artifact

Run code coverage only once for the stable version of rust

	modified:   .github/workflows/check.yml
  • Loading branch information
agokarn committed Nov 24, 2024
1 parent 1e00204 commit ec2d328
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,20 @@ jobs:
if: ${{ success() || failure() }}
run: |
cargo clippy --tests --no-default-features --features ${{ matrix.hpke }},client,server
- name: Install cargo-llvm-cov
if: matrix.rust == 'stable'
run: |
cargo install cargo-llvm-cov
- name: Generate coverage report
if: matrix.rust == 'stable'
run: |
cargo llvm-cov --features ${{ matrix.hpke }},client,server --cobertura --output-path target/cobertura.xml -- --test --test-threads=1
- name: Upload coverage artifact
if: matrix.rust == 'stable'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: target/cobertura.xml

0 comments on commit ec2d328

Please sign in to comment.