-
Notifications
You must be signed in to change notification settings - Fork 43
45 lines (43 loc) · 1.14 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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