Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

chore: add yarn.lock #4155

chore: add yarn.lock

chore: add yarn.lock #4155

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.ACCESS_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 14
cache: yarn
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: Install dependencies
run: yarn install
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Run linter
run: yarn lint
# When NOT in dev or master we run some basic scenarios (e.g 18 decimals and target decimals < and > than underlying decimals)
- name: Run local tests
if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/master'
run: yarn test
- name: Run mainnet tests
run: yarn test:mainnet
env:
RPC_URL_MAINNET: ${{ secrets.MAINNET_RPC_URL }}
FOUNDRY_BLOCK_NUMBER: 16449463
# Only when there's a push to dev or master, we run all the possible combinations of tests (PAUSED UNTIL FIXED)
- name: Run local tests with all possible combinations of ERC20, nonERC20, ERC4626 and 6, 8 and 18 decimals for Target, Underlying and Stake
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'
run: yarn workspace @sense-finance/v1-core run test:fuzz
- name: Check deploy scripts on a local mainnet fork
run: cd pkg/deployments; yarn deploy:hardhat-fork:prod
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
MNEMONIC: ${{ secrets.MNEMONIC }}
FORK_TOP_UP: ${{ secrets.FORK_TOP_UP }}
MAINNET_RPC_URL: "test"
GOERLI_RPC_URL: "test"
ZEROEX_API_KEY: ${{ secrets.ZEROEX_API_KEY }}
- name: Check code coverage
run: yarn coverage
id: coverage
env:
RPC_URL_MAINNET: ${{ secrets.MAINNET_RPC_URL }}
FOUNDRY_BLOCK_NUMBER: 16449463
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Check simulated testchain env scripts on a local mainnet fork
run: cd pkg/deployments; yarn deploy:hardhat-fork:sim
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
MNEMONIC: ${{ secrets.MNEMONIC }}
FORK_TOP_UP: ${{ secrets.FORK_TOP_UP }}
- name: Commit changes
if: ${{ github.ref == 'refs/heads/dev' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] gas snapshot'
branch: ${{ github.head_ref }}
file_pattern: gas-snapshots/*