Skip to content

Add testnets for forked tests #30

Add testnets for forked tests

Add testnets for forked tests #30

Workflow file for this run

name: test
on:
push:
pull_request:
branches:
- master
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
env:
RPC_MAINNET: ${{ secrets.ethereum-mainnet }}
RPC_AVALANCHE: ${{ secrets.avalanche-mainnet }}
RPC_OP: ${{ secrets.op-mainnet }}
RPC_ARBITRUM: ${{ secrets.arbitrum-mainnet }}
RPC_BASE: ${{ secrets.base-mainnet }}
RPC_POLYGON: ${{ secrets.polygon-mainnet }}
RPC_TESTNET: ${{ secrets.ethereum-testnet }}
RPC_AVALANCHE_TESTNET : ${{ secrets.avalanche-testnet }}
RPC_OP_TESTNET : ${{ secrets.op-testnet }}
RPC_ARBITRUM_TESTNET : ${{ secrets.arbitrum-testnet }}
RPC_BASE_TESTNET : ${{ secrets.base-testnet }}
RPC_POLYGON_TESTNET : ${{ secrets.polygon-testnet }}
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --root ./AxelarHandler
forge build --root ./CCTPRelayer
id: build
- name: Run Forge tests
run: |
forge test --root ./AxelarHandler -vvv --compute-units-per-second 100 --fork-url https://eth.llamarpc.com
forge test --root ./CCTPRelayer -vvv --compute-units-per-second 100 --fork-url https://eth.llamarpc.com
id: test
env:
RPC_MAINNET: ${{ secrets.MainnetRpc }}
RPC_AVALANCHE : https://avalanche.drpc.org
RPC_OP : https://optimism.llamarpc.com
RPC_ARBITRUM : https://arbitrum.llamarpc.com
RPC_BASE: https://base.llamarpc.com
RPC_POLYGON : https://polygon.llamarpc.com