ci: add fuzz seed to avoid burning rpc requests
This commit is contained in:
parent
49b82cbcd4
commit
45e7248c37
|
@ -24,7 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
- name: "Install Foundry"
|
- name: "Install Foundry and restore the RPC cache, if any"
|
||||||
uses: "foundry-rs/foundry-toolchain@v1"
|
uses: "foundry-rs/foundry-toolchain@v1"
|
||||||
|
|
||||||
- name: "Install Node.js"
|
- name: "Install Node.js"
|
||||||
|
@ -47,6 +47,12 @@ jobs:
|
||||||
- name: "Show the Foundry config"
|
- name: "Show the Foundry config"
|
||||||
run: "forge 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"
|
- name: "Run the tests"
|
||||||
run: "forge test"
|
run: "forge test"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue