From dc593de27106966092e5fce244b78ca9ce419e61 Mon Sep 17 00:00:00 2001 From: Hendrik Eeckhaut Date: Thu, 26 Sep 2024 12:13:05 +0200 Subject: [PATCH] ci: generate coverage report --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4f5095736..b96b8ba869 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file