Skip to content

feat: grab mmRatio from CH config instead of using 62500 hardcode #416

feat: grab mmRatio from CH config instead of using 62500 hardcode

feat: grab mmRatio from CH config instead of using 62500 hardcode #416

Workflow file for this run

name: Testing
on: [push]
jobs:
contract-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile --network-concurrency 1
- name: Build packages
run: yarn build
- name: Run tests
run: yarn test-parallel
env:
# to solve problem of memory leak https://stackoverflow.com/a/59572966
NODE_OPTIONS: "--max-old-space-size=4096"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile --network-concurrency 1
- name: Run lint
run: yarn lint
foundry-test:
name: Foundry Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile --network-concurrency 1
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run tests
run: yarn foundry-test
- name: Run snapshot
run: forge snapshot