fix: miner for anvil deployment #37
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: "CI" | |
| env: | |
| API_KEY_ALCHEMY: ${{ secrets.API_KEY_ALCHEMY }} | |
| FOUNDRY_PROFILE: "ci" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| checks: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "Check out the repo" | |
| uses: "actions/checkout@v4" | |
| with: | |
| submodules: "recursive" | |
| fetch-depth: 1 | |
| - 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: "Lint the code" | |
| run: "bun run lint" | |
| - name: "Build the production contracts and print their size" | |
| run: "forge build --sizes --skip test --skip script" | |
| - name: "Show the Foundry config" | |
| run: "forge config" | |
| - 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 the tests" | |
| run: "forge test" | |
| - name: "Add CI summary" | |
| run: | | |
| echo "## CI result" >> $GITHUB_STEP_SUMMARY | |
| echo "- Lint: Passed" >> $GITHUB_STEP_SUMMARY | |
| echo "- Build: Passed" >> $GITHUB_STEP_SUMMARY | |
| echo "- Tests: Passed" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |