-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.25 KB
/
ci.yml
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
46
47
48
49
50
51
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: setup-nvm
uses: dcodeIO/setup-node-nvm@master
with:
node-version: v18.0.0
- name: setup-yarn
run: |
npm i -g [email protected]
yarn --version
- name: setup-env
uses: SpicyPizza/create-envfile@v1
with:
envkey_MAINNET_RPC_URL: https://mainnet.infura.io/v3/${{ secrets.API_KEY }}
envkey_RINKEBY_RPC_URL: https://rinkeby.infura.io/v3/${{ secrets.API_KEY }}
envkey_ROPSTEN_RPC_URL: https://ropsten.infura.io/v3/${{ secrets.API_KEY }}
envkey_KOVAN_RPC_URL: https://kovan.infura.io/v3/${{ secrets.API_KEY }}
envkey_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
envkey_ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
envkey_REPORT_GAS: true
file_name: .env
- name: build
run: |
cd helix-contract
yarn install
yarn build
# yarn build:contracts
- name: test
run: |
cd helix-contract
yarn test