Skip to content

Commit

Permalink
actually use the cache from test tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Aug 23, 2024
1 parent 832212e commit 39c207a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/tests-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ jobs:
./contracts/cache
key: v2-contracts-abi-${{ hashFiles('./contracts/**/*.sol') }}

- name: Cache Cargo Build
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
if: always()
with:
path: |
/home/runner/.cargo/registry
/home/runner/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
cache-on-failure: true

- name: Run e2e tests
run: cd fendermint && PROFILE=ci make e2e-only
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/tests-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@ jobs:
./contracts/cache
key: v2-contracts-abi-${{ hashFiles('./contracts/**/*.sol') }}

- name: Cache Cargo Build
uses: actions/cache@v4
- uses: Swatinem/rust-cache@v2
if: always()
with:
path: |
/home/runner/.cargo/registry
/home/runner/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
cache-on-failure: true

- name: Run unit tests
run: make test-rust
Expand Down

0 comments on commit 39c207a

Please sign in to comment.