Skip to content

add sleep

add sleep #4

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [develop, staging, main]
pull_request:
branches: [develop, staging, main]
jobs:
build:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
FORK_FROM_BLOCK_NUMBER_MAINNET: "16426621"
FORKING_NETWORK: "MAINNET"
FORGE_API_KEY_ETHEREUM: ${{ secrets.FORGE_API_KEY_ETHEREUM }}
MAINNET_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }}
MNEMONIC: ${{ secrets.MNEMONIC }}
MAINNET_PRIVATE_KEY: ${{ secrets.MAINNET_PRIVATE_KEY }}
TESTNET_PRIVATE_KEY: ${{ secrets.TESTNET_PRIVATE_KEY }}
MAINNET_RPC_URL_POLYGON: ${{ secrets.MAINNET_RPC_URL_POLYGON }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
BSC_RPC_URL: ${{ secrets.FORGE_API_KEY_BSC }}
FORK_FROM_BLOCK_NUMBER_BSC: ${{ secrets.FORK_FROM_BLOCK_NUMBER_BSC }}
POLYGON_PRIVATE_KEY: ${{ secrets.POLYGON_PRIVATE_KEY }}
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/setup-node@v2
with:
node-version: 16.x
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: yarn
- run: yarn lint:check
- run: |
yarn local-node & sleep 200 && yarn hardhat run --network localhost scripts/ci/event_coverage_usdy.ts
- run: yarn clean
- run: yarn test-forge-ci
continue-on-error: false