Skip to content

GM Token Strategy

GM Token Strategy #643

Workflow file for this run

name: Foundry
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FOUNDRY_PROFILE: ci
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }}
FANTOM_RPC_URL: https://rpc2.fantom.network
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
AVALANCHE_RPC_URL: https://avalanche.public-rpc.com
MOONRIVER_RPC_URL: https://moonriver.public.blastapi.io
KAVA_RPC_URL: ${{ secrets.KAVA_RPC_URL }}
LINEA_RPC_URL: https://rpc.linea.build
BASE_RPC_URL: https://mainnet.base.org
SCROLL_RPC_URL: https://rpc.scroll.io
jobs:
check:
strategy:
fail-fast: true
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: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- run: rustc --version
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: yarn --ignore-scripts
- run: node init.js lib/
- name: Run Forge build
run: |
(cd lib/forge-deploy && cargo build --release && cp target/release/forge-deploy ../../forge-deploy)
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test --gas-report -vv
FOUNDRY_PROFILE=shanghai forge test --gas-report -vv
id: test