generated from NomicFoundation/hardhat-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (34 loc) · 872 Bytes
/
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
40
41
42
43
44
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- staging
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install nodejs
uses: actions/setup-node@v2
with:
node-version: "16.x"
check-latest: true
- name: Install dependencies
run: yarn
- name: Check code style
run: yarn prettier --check contracts test
- name: Compile contracts
run: yarn run hardhat compile
- name: Check compiled contract size
run: yarn run hardhat size-contracts
- name: Test
run: yarn run hardhat coverage