-
Notifications
You must be signed in to change notification settings - Fork 16
59 lines (46 loc) · 1.19 KB
/
hardhat.yml
File metadata and controls
59 lines (46 loc) · 1.19 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Hardhat
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install yarn
working-directory: ./contracts/hardhat
run: npm install --global yarn
- name: Install packages
working-directory: ./contracts/hardhat
run: yarn
- name: Run check
working-directory: ./contracts/hardhat
run: npm_config_yes=true npm run check
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Install yarn
working-directory: ./contracts/hardhat
run: npm install --global yarn
- name: Install packages
working-directory: ./contracts/hardhat
run: yarn
- name: Run tests
working-directory: ./contracts/hardhat
run: npm_config_yes=true npm run test