feat: add CI workflow for code coverage reporting with Codecov

This commit is contained in:
Manuel Raimann
2026-01-30 17:34:26 +01:00
parent e95755dd82
commit f27e911633
+21
View File
@@ -73,3 +73,24 @@ jobs:
- run: cargo doc --all-features --no-deps
env:
RUSTDOCFLAGS: -D warnings
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
run: |
rustup override set stable
rustup update stable
rustup component add llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Generate coverage report
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: lcov.info
fail_ci_if_error: true