Add a Safe Guard that implements a timelock for the upgrade Safe #1160
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@v3 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly-fe2acca4e379793539db80e032d76ffe0110298b | |
- name: Install dependencies | |
run: git submodule update --recursive --init | |
- name: Build UniswapV4 | |
run: forge build lib/v4-core/src/PoolManager.sol | |
- name: Build Safe Guard | |
run: forge build src/deployer/SafeGuard.sol | |
env: | |
FOUNDRY_EVM_VERSION: london | |
FOUNDRY_OPTIMIZER_RUNS: 200 | |
- 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 SafeGuard.sol | |
env: | |
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} |