Merge pull request #5 from Uniswap/fix/m-02-key-index-overflow #42
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: test | |
| on: | |
| pull_request: | |
| branches: [main, master, staging, dev, feat/**, fix/**] | |
| push: | |
| branches: [main, master, staging, dev] | |
| env: | |
| FOUNDRY_PROFILE: ${{ github.event_name == 'push' && 'ci' || 'pr' }} | |
| jobs: | |
| forge-test: | |
| strategy: | |
| fail-fast: true | |
| name: Foundry project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Run Forge build | |
| run: | | |
| echo Foundry profile: $FOUNDRY_PROFILE | |
| forge --version | |
| forge build --sizes --skip test script | |
| id: build | |
| - name: Run Forge tests | |
| run: forge test --isolate -vvv | |
| id: test | |
| env: | |
| FORGE_SNAPSHOT_CHECK: true |