Update README #1057
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci && npm run load-contracts | |
- name: compile | |
run: npx hardhat compile | |
- name: test | |
run: | |
export ALCHEMY_MAINNET_API_KEY=${{secrets.ALCHEMY_MAINNET_API_KEY}} | |
npm run test | |
sim: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip3 install numpy && npm ci && npm run load-contracts | |
- name: compile | |
run: npx hardhat compile | |
- name: simulation | |
run: | |
export ALCHEMY_MAINNET_API_KEY=${{secrets.ALCHEMY_MAINNET_API_KEY}} | |
npm run sim | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci && npm run load-contracts | |
- name: compile | |
run: npx hardhat compile | |
- name: typecheck | |
run: npm run typecheck |