-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (37 loc) · 1.02 KB
/
test.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
name: Test Package
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
cache: 'yarn'
- run: |
echo MNEMONIC="test test test test test test test test test test test junk" > .env
echo INFURA_API_KEY="test" >> .env
echo ETHERSCAN_API_KEY="test" >> .env
echo AURORA_API_KEY="test" >> .env
- run: |
yarn
yarn compile
- run: yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
cache: 'yarn'
- run: |
echo MNEMONIC="test test test test test test test test test test test junk" > .env
echo INFURA_API_KEY="test" >> .env
echo ETHERSCAN_API_KEY="test" >> .env
echo AURORA_API_KEY="test" >> .env
- run: |
yarn
yarn compile
- run: yarn test