-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (40 loc) · 1.07 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Install Solidity compiler
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.5.17/solc-static-linux
chmod ugo+x solc-static-linux
sudo mv solc-static-linux /usr/bin/solc
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- uses: actions/cache@v1
with:
path: ~/.npm
key: tests-node-${{ hashFiles('**/package-lock.json') }}
- name: Run tests
run: |
yarn
make lint && make compile && yarn test
coverage:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- uses: actions/cache@v1
with:
path: ~/.npm
key: coverage-node-${{ hashFiles('**/package-lock.json') }}
- name: Run tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
yarn
make coverage