name: Test Coverage on: push: pull_request: jobs: coverage: runs-on: ubuntu-latest steps: - name: Setup Rust uses: dtolnay/rust-toolchain@master with: toolchain: stable components: llvm-tools-preview - name: Install cargo-llvm-cov uses: taiki-e/install-action@v2 with: tool: cargo-llvm-cov - uses: actions/checkout@v4 - uses: actions/cache@v4 with: key: coverage-${{ hashFiles('**/Cargo.lock') }} path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - name: Run cargo-llvm-cov run: cargo llvm-cov --all-features --html - name: Upload Report uses: actions/upload-artifact@v4 with: name: coverage-report path: target/llvm-cov/html