-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (29 loc) · 814 Bytes
/
main.yml
File metadata and controls
37 lines (29 loc) · 814 Bytes
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
name: CI
on: ["push", "pull_request"]
jobs:
test:
name: Test contracts
runs-on: ubuntu-latest
env:
REPORT_GAS: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Init submodules
run: git submodule init
- name: Update submodules
run: git submodule update
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Compile contracts
run: yarn compile
- name: Run tests
run: yarn test:contracts --network hardhat
- name: Coverage
run: yarn coverage:contracts
- name: Coveralls
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}