Skip to content

fix _routerSwapToOptimalRatioHelper and clean reinvest #151

fix _routerSwapToOptimalRatioHelper and clean reinvest

fix _routerSwapToOptimalRatioHelper and clean reinvest #151

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
env:
FOUNDRY_PROFILE: lite
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
BASE_RPC_URL: ${{ secrets.BASE_RPC_URL }}
jobs:
check:
name: Forge Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install dependencies 📦
run: yarn install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run Forge build
run: forge build
- name: Run tests
run: forge test -vvv
- name: Run snapshot
run: NO_COLOR=1 forge snapshot >> $GITHUB_STEP_SUMMARY