github: Simplify the coverage action

This commit is contained in:
Valentin Tolmer 2022-03-31 16:29:03 +02:00 committed by nitnelave
parent ae9b3678df
commit a8e5549b3f

View File

@ -105,13 +105,10 @@ jobs:
- name: Install Rust - name: Install Rust
run: rustup toolchain install nightly --component llvm-tools-preview run: rustup toolchain install nightly --component llvm-tools-preview
- name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov
run: curl -LsSf https://github.com/taiki-e/cargo-llvm-cov/releases/latest/download/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: clean
run: cargo llvm-cov clean --workspace
- name: Generate code coverage for unit test - name: Generate code coverage for unit test
run: cargo llvm-cov --workspace --no-report run: cargo llvm-cov --workspace --no-report
- name: Aggregate reports - name: Aggregate reports