-
Notifications
You must be signed in to change notification settings - Fork 49
42 lines (35 loc) · 1.02 KB
/
contracts-ci-cd.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: Contracts CI/CD
on: push
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 14.15.5
- name: Cache yarn modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: yarn-${{ hashFiles('yarn.lock') }}
- name: Cache contracts
uses: actions/cache@v2
with:
path: |
packages/*/cache
packages/*/artifacts
~/.cache/buidler-nodejs/
~/.cache/hardhat-nodejs/
key: contracts-${{ hashFiles('packages/*/contracts/**/*.sol') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build contracts
run: yarn compile:cached
- name: Run coverage
run: yarn coverage
- name: Upload report
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}