open source contracts #4
This file contains hidden or 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
name: Tests-Merge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: | |
labels: ubuntu-latest-large | |
timeout-minutes: 30 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install the Node.js dependencies | |
run: bun install | |
- name: Generate a fuzz seed that changes weekly to avoid burning through RPC allowance | |
run: echo "FOUNDRY_FUZZ_SEED=$(echo $(($EPOCHSECONDS - $EPOCHSECONDS % 604800)))" >> $GITHUB_ENV | |
- name: Run tests | |
run: forge test | |
env: | |
FOUNDRY_PROFILE: ci |