forked from zkp2p/zk-p2p
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1005 Bytes
/
push.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
name: push
on: [push]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Specify node version...
uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- name: Install Dependencies
run: yarn install
working-directory: ./contracts
- name: Set up env variables...
run: cp contracts/.env.default contracts/.env
- name: Building...
run: yarn build
working-directory: ./contracts
- name: Set-up chain...
run: yarn chain &
working-directory: ./contracts
env:
PORT: 8545
- name: Run smart contract tests...
run: yarn test:clean --network localhost
working-directory: ./contracts
- name: Run coverage
run: yarn coverage
working-directory: ./contracts
- name: Check deploy
run: yarn deploy:localhost
working-directory: ./contracts