Skip to content

Commit

Permalink
better caching
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeal-eth committed Aug 15, 2023
1 parent 380322a commit 92cd02c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ jobs:
with:
node-version: "16.20.1"
cache: "yarn"
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Cache Hardhat artifacts
uses: actions/cache@v3
with:
key: hardhat-${{ matrix.workspace }}
key: hardhat-${{ matrix.workspace }}-${{ env.GITHUB_REF }}-${{ steps.date.outputs.date }}
restore-keys: |
hardhat-${{ matrix.workspace }}-${{ env.GITHUB_REF }}
hardhat-${{ matrix.workspace }}
path: |
markets/**/cache
markets/**/artifacts
Expand All @@ -54,7 +60,10 @@ jobs:
- name: Cache Cannon packages
uses: actions/cache@v3
with:
key: cannon-${{ matrix.workspace }}
key: cannon-${{ matrix.workspace }}-${{ env.GITHUB_REF }}-${{ steps.date.outputs.date }}
restore-keys: |
cannon-${{ matrix.workspace }}-${{ env.GITHUB_REF }}
cannon-${{ matrix.workspace }}
path: |
~/.local/share/cannon
Expand Down

0 comments on commit 92cd02c

Please sign in to comment.