mirror of
https://github.com/vacp2p/foundry-template.git
synced 2025-02-16 17:26:40 +00:00
ci: add fuzz seed to avoid burning rpc requests
This commit is contained in:
parent
49b82cbcd4
commit
45e7248c37
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user