Skip to content

Commit

Permalink
ci: generate coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Sep 29, 2024
1 parent 79c00fc commit dc593de
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,23 @@ jobs:

- name: Run integration tests
run: cargo test --profile tests-integration --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core -- --include-ignored
coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install stable rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core --html
- name: Save coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./target/llvm-cov/html/
if-no-files-found: error

0 comments on commit dc593de

Please sign in to comment.