Skip to content

Base mainnet deployment 0.3.0 Apr 2025 #1435

Base mainnet deployment 0.3.0 Apr 2025

Base mainnet deployment 0.3.0 Apr 2025 #1435

Workflow file for this run

name: Tests
on:
push:
branches: [ main, staging, develop ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FOUNDRY_PROFILE: default
POLYGON_MAINNET_RPC: ${{ secrets.POLYGON_MAINNET_RPC }}
ETHEREUM_MAINNET_RPC: ${{ secrets.ETHEREUM_MAINNET_RPC }}
ARBITRUM_MAINNET_RPC: ${{ secrets.ARBITRUM_MAINNET_RPC }}
ARBITRUM_SEPOLIA_RPC: ${{ secrets.ARBITRUM_SEPOLIA_RPC }}
OPBASE_MAINNET_RPC: ${{ secrets.OPBASE_MAINNET_RPC }}
OPBASE_SEPOLIA_RPC: ${{ secrets.OPBASE_SEPOLIA_RPC }}
FIX_BLOCK_ARBITRUM_MAINNET: false
BLOCK_NUMBER_ARBITRUM_MAINNET: 268596680
FIX_BLOCK_ARBITRUM_SEPOLIA: false
BLOCK_NUMBER_ARBITRUM_SEPOLIA: 92996012
FIX_BLOCK_OPBASE_MAINNET: false
BLOCK_NUMBER_OPBASE_MAINNET: 25666192
FIX_BLOCK_OPBASE_SEPOLIA: false
BLOCK_NUMBER_OPBASE_SEPOLIA: 21176690
jobs:
test:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/checkout@v4
if: github.event_name == 'push'
with:
fetch-depth: 0
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Dependencies
run: forge install
- name: Setup .env from env.example
run: cp .env.example .env
- name: Build Contracts & Run Tests
run: |
NO_COLOR=1 forge test -vvv 2>&1 | tee -a $GITHUB_STEP_SUMMARY
test_exit_status=${PIPESTATUS[0]}
exit $test_exit_status