Skip to content

Commit

Permalink
test: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
heemankv committed Aug 20, 2024
1 parent feab798 commit 5fe538a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
Expand All @@ -78,7 +81,10 @@ jobs:
- name: Clean workspace
run: |
cargo llvm-cov clean --workspace
cargo clean --doc
- name: Build for caching
run: cargo build --release --tests

- name: Run llvm-cov
env:
Expand Down

0 comments on commit 5fe538a

Please sign in to comment.