Skip to content

Commit

Permalink
Add cargo-llvm-cov test coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Malax committed Jan 7, 2025
1 parent 564fcef commit 4ceead7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ jobs:
run: rustup update
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run unit tests
run: cargo test --locked
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run unit tests and generate coverage report
run: cargo llvm-cov --locked --html
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
with:
name: "llvm-cov-html-${{github.event.repository.name}}-${{GITHUB_SHA}}"
path: "target/llvm-cov/html"
if-no-files-found: "error"

integration-test:
name: Integration Tests (${{ matrix.buildpack-directory }}, ${{matrix.builder}}, ${{matrix.arch}})
Expand Down

0 comments on commit 4ceead7

Please sign in to comment.