Skip to content

ci(rust): improve workflow #151

ci(rust): improve workflow

ci(rust): improve workflow #151

Workflow file for this run

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