forked from rsksmart/rif-rollup
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (65 loc) · 2.05 KB
/
ci.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: ri-aggregation CI
on:
push:
branches:
- rsk_port_initial
- ci_setup
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: rsk_port_initial
- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml up --build -d zk
ci_run sccache --start-server
- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: lints
run: |
ci_run zk
ci_run zk fmt --check
ci_run zk lint --check
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: rsk_port_initial
- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml pull
docker-compose -f docker-compose-runner.yml up --build -d postgres rskj zk
ci_run sccache --start-server
- name: init
run: |
ci_run ln -s /usr/src/keys/setup keys/setup
ci_run zk
ci_run zk run verify-keys unpack
ci_run zk contract build
ci_run zk run deploy-erc20 dev
ci_run zk run deploy-eip1271
ci_run zk db basic-setup
ci_run zk run yarn
- name: restart dev-liquidity-token-watcher and dev-ticker
run: docker-compose -f docker-compose-runner.yml restart dev-liquidity-token-watcher dev-ticker
- name: contracts-unit-tests
run: ci_run zk test contracts
- name: js-unit-tests
run: ci_run zk test js
- name: rust-unit-tests
run: ci_run zk test server-rust