-
Notifications
You must be signed in to change notification settings - Fork 43
46 lines (44 loc) · 1.39 KB
/
contract-tests.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
45
46
name: Contracts Tests
on:
push:
paths:
- 'packages/contracts/**'
- '.github/workflows/contract-*.yml'
env:
working-directory: packages/contracts
jobs:
test-hardhat:
if: github.actor != 'arabot-1'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{env.working-directory}}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16
- name: Install dependencies
run: cd ../../ && yarn install --pure-lockfile
- name: Check formatting
run: yarn run formatting:check
- name: Compile contracts
run: yarn run build && yarn run build:npm
- name: Run Hardhat Tests
env:
REPORT_GAS: true
HARDHAT_DAO_ENS_DOMAIN: 'dao.eth'
HARDHAT_PLUGIN_ENS_DOMAIN: 'plugin.dao.eth'
MANAGINGDAO_SUBDOMAIN: 'management'
MANAGINGDAO_MULTISIG_LISTEDONLY: ${{ vars.MANAGINGDAO_MULTISIG_LISTEDONLY }}
MANAGINGDAO_MULTISIG_APPROVERS: ${{ vars.MANAGINGDAO_MULTISIG_APPROVERS }}
MANAGINGDAO_MULTISIG_MINAPPROVALS: ${{ vars.MANAGINGDAO_MULTISIG_MINAPPROVALS }}
run: yarn run test
- name: Run solidity-docgen
run: yarn run docgen