Add a Safe Guard that implements a timelock for the upgrade Safe #1502
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: tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-59f354c179f4e7f6d7292acb3d068815c79286d1 | |
- name: Install dependencies | |
run: git submodule update --recursive --init | |
- name: Build Safe Guard | |
run: forge build src/deployer/SafeGuard.sol | |
env: | |
FOUNDRY_EVM_VERSION: london | |
FOUNDRY_OPTIMIZER_RUNS: 200 | |
- name: Run SafeGuard tests | |
run: forge test --skip SafeGuard.sol --mp test/SafeGuard.t.sol | |
env: | |
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} | |
- name: Build UniswapV4 | |
run: forge build -- lib/v4-core/src/PoolManager.sol | |
- name: Build all other contracts | |
run: forge build --skip UniswapV4UnitTest.t.sol --skip SafeGuard.sol | |
- name: Build UniswapV4 unit test | |
run: forge build --skip SafeGuard.sol | |
- name: Run tests | |
run: forge test --skip 'src/*' | |
env: | |
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} |