-
Notifications
You must be signed in to change notification settings - Fork 44
36 lines (36 loc) · 1.09 KB
/
contracts-domain.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
name: push
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=8192
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Specify node version...
uses: actions/setup-node@v3
with:
node-version: '20.9.0'
- name: Install Dependencies
run: yarn install
working-directory: ./contracts-domain
- name: Set up env variables...
run: cp contracts-domain/.env.default contracts-domain/.env
- name: Building...
run: yarn build
working-directory: ./contracts-domain
- name: Set-up chain...
run: yarn chain &
working-directory: ./contracts-domain
env:
PORT: 8545
- name: Run smart contract tests...
run: yarn test:clean --network localhost
working-directory: ./contracts-domain
- name: Run coverage
run: yarn coverage
working-directory: ./contracts-domain
- name: Check deploy
run: yarn deploy:localhost
working-directory: ./contracts-domain