fix preset and withdraw window #208
Workflow file for this run
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: Simulate Release | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- "main" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
CANNON_SETTINGS: ${{ secrets.CANNON_SETTINGS }} | |
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toml: | |
- "omnibus-mainnet.toml" | |
- "omnibus-optimism-mainnet.toml" | |
- "omnibus-goerli.toml" | |
- "omnibus-optimism-goerli.toml" | |
- "omnibus-base-goerli.toml" | |
- "omnibus-base-goerli-competition.toml" | |
- "omnibus-sepolia.toml" | |
- "omnibus-polygon-mumbai.toml" | |
# - "omnibus-arbitrum-goerli.toml" # Arbitrum Goerli always fails on dry run | |
include: | |
- toml: "omnibus-mainnet.toml" | |
preset: "main" | |
chainId: 1 | |
providerUrl: "https://mainnet.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-optimism-mainnet.toml" | |
preset: "main" | |
chainId: 10 | |
providerUrl: "https://optimism-mainnet.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-goerli.toml" | |
preset: "main" | |
chainId: 5 | |
providerUrl: "https://goerli.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-optimism-goerli.toml" | |
preset: "main" | |
chainId: 420 | |
providerUrl: "https://optimism-goerli.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-base-goerli.toml" | |
preset: "main" | |
chainId: 84531 | |
providerUrl: "https://base-goerli.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-base-goerli-competition.toml" | |
preset: "competition" | |
chainId: 84531 | |
providerUrl: "https://base-goerli.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-sepolia.toml" | |
preset: "main" | |
chainId: 11155111 | |
providerUrl: "https://sepolia.infura.io/v3/$INFURA_API_KEY" | |
- toml: "omnibus-polygon-mumbai.toml" | |
preset: "main" | |
chainId: 80001 | |
providerUrl: "https://polygon-mumbai.infura.io/v3/$INFURA_API_KEY" | |
# - toml: "omnibus-arbitrum-goerli.toml" | |
# preset: "main" | |
# chainId: 421613 | |
# providerUrl: "https://arbitrum-goerli.infura.io/v3/$INFURA_API_KEY" | |
steps: | |
- name: Install Foundry (Cannon) | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- run: anvil -V | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: npm i -g @usecannon/cli | |
- run: npx @usecannon/cli plugin add cannon-plugin-router | |
- run: | | |
npx @usecannon/cli build \ | |
${{ matrix.toml }} \ | |
--upgrade-from synthetix-omnibus:latest \ | |
--preset ${{ matrix.preset }} \ | |
--provider-url ${{ matrix.providerUrl }} \ | |
--chain-id ${{ matrix.chainId }} \ | |
--dry-run | tee deployment.log | |
grep 'Successfully built package synthetix-omnibus' deployment.log | |
if [ $(grep -c 'exec: contract.InitialCoreProxy' deployment.log) -gt 0 ]; then | |
echo "Proxy InitialCoreProxy was modified" | |
exit 1 | |
fi | |
if [ $(grep -c 'exec: contract.InitialProxy' deployment.log) -gt 0 ]; then | |
echo "Proxy InitialProxy was modified" | |
exit 1 | |
fi |