Skip to content

Commit

Permalink
ci: Add code coverage job
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Oct 8, 2024
1 parent b99322d commit 1e5b0aa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,18 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo +nightly build --target x86_64-unknown-uefi --verbose -p uefi-std-example
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo xtask cov --lcov
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
files: target/llvm-cov/lcov

0 comments on commit 1e5b0aa

Please sign in to comment.