ci: add fuzz seed to avoid burning rpc requests

This commit is contained in:
Paul Razvan Berg 2023-01-17 20:16:05 +02:00
parent 49b82cbcd4
commit 45e7248c37
No known key found for this signature in database
GPG Key ID: BCC366159BD63828
1 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,7 @@ jobs:
with:
submodules: "recursive"
- name: "Install Foundry"
- name: "Install Foundry and restore the RPC cache, if any"
uses: "foundry-rs/foundry-toolchain@v1"
- name: "Install Node.js"
@ -47,6 +47,12 @@ jobs:
- name: "Show the Foundry config"
run: "forge config"
- name: "Generate fuzz seed that changes weekly to avoid burning through RPC allowance"
run: >
echo "FOUNDRY_FUZZ_SEED=$(
echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800))
)" >> $GITHUB_ENV
- name: "Run the tests"
run: "forge test"