feat: Add foundry environment and CI

This commit is contained in:
Diana Carvalho
2025-01-16 18:20:13 +00:00
parent 3127c0e9bb
commit e16d7ccb8e
64 changed files with 27898 additions and 1 deletions

33
.github/workflows/evm_foundry_ci.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: EVM Foundry Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
check:
name: Foundry
runs-on: ubuntu-latest
env:
RPC_URL: ${{ secrets.ETH_RPC_URL }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Check formatting
run: forge fmt --check
working-directory: foundry
- name: Run tests
run: forge test -vvv
working-directory: foundry
- name: Run snapshot
run: NO_COLOR=1 forge snapshot >> $GITHUB_STEP_SUMMARY
working-directory: foundry