Created
December 6, 2022 16:38
-
-
Save ArtificialPB/aaf7b59f696b9d140ae1183fd4ff155b to your computer and use it in GitHub Desktop.
Github action step for caching RPC forked state. NOTE: edit the paths under `key` according to your project structure.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Always try to load any available cache - saving it again after each run. Goal is to minimize RPC calls, | |
# speeding up tests. See: https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache | |
- name: Cache Foundry forked state | |
uses: actions/cache@v3 | |
with: | |
path: ~/.foundry/cache/rpc | |
key: ${{ runner.os }}-foundry-${{ hashFiles('./ethereum/kriptal/foundry.toml', './ethereum/kriptal/src/test/**/*.sol') }} | |
restore-keys: ${{ runner.os }}-foundry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment