Merge pull request #249 from Layr-Labs/test/strategy-manager-add-remo… #1909
This file contains 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: Automatic Testing | |
on: | |
push: | |
pull_request: | |
types: [opened, reopened] | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: Foundry Project | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install forge dependencies | |
run: forge install | |
- name: Run build and check contract sizes | |
run: forge build --sizes | |
- name: Run tests | |
run: forge test -vvv --no-match-contract FFI | |
env: | |
RPC_MAINNET: ${{ secrets.RPC_MAINNET }} | |
CHAIN_ID: ${{ secrets.CHAIN_ID }} | |
- name: Run snapshot | |
run: forge snapshot --no-match-contract FFI | |
env: | |
RPC_MAINNET: ${{ secrets.RPC_MAINNET }} | |
CHAIN_ID: ${{ secrets.CHAIN_ID }} |