-
Notifications
You must be signed in to change notification settings - Fork 1
113 lines (92 loc) · 3.3 KB
/
test.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Run Tonomy-ID-SDK Tests
on:
push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Run lint and test
uses: actions/setup-node@v4
with:
node-version: 22.3.0
cache: yarn
- run: yarn install --immutable
- run: yarn run build
- run: yarn run lint
- run: yarn run test:unit
compile-contracts:
name: Compiles contracts needed for bootstrap script
runs-on: ubuntu-20.04
container: tonomy/antelope
steps:
- uses: actions/checkout@v4
with:
repository: Tonomy-Foundation/Tonomy-Contracts
ref: development
path: Tonomy-Contracts
- name: Build demo.tmy contract
run: ./Tonomy-Contracts/contracts/demo.tmy/build.sh local
- name: Compile eosio.bios
run: ./Tonomy-Contracts/contracts/eosio.bios/build.sh local
- name: Compile eosio.msig
run: ./Tonomy-Contracts/contracts/eosio.msig/build.sh local
- name: Build eosio.token contract
run: ./Tonomy-Contracts/contracts/eosio.token/build.sh local
- name: Build eosio.tonomy contract
run: ./Tonomy-Contracts/contracts/eosio.tonomy/build.sh local
- name: Build tonomy contract
run: ./Tonomy-Contracts/contracts/tonomy/build.sh local
- name: Build vesting.tmy contract
run: ./Tonomy-Contracts/contracts/vesting.tmy/build.sh local
- name: Add Tonomy-Contracts dir to artifacts
uses: actions/upload-artifact@v4
with:
name: Tonomy-Contracts
path: ./Tonomy-Contracts
integration-test:
needs: compile-contracts
runs-on: ubuntu-20.04
env:
TONOMY_OPS_PRIVATE_KEY: PVT_K1_24kG9VcMk3VkkgY4hh42X262AWV18YcPjBTd2Hox4YWoP8vRTU
TONOMY_BOARD_PUBLIC_KEYS: '{"keys":["PUB_K1_81aU18Y3RdyFf2WY4Wy7g7fvG9M9d7hmY4rhNFeXouYYPjExua","PUB_K1_5HWprCobEy8LiYUpfVmh8BdGDb8ANPc8rhBhtNqhvXnuxpyCaq","PUB_K1_5VLYVhqfe7oh8TW2i6Nw251wbpoZ4p15DV7udqDjiaKnryx9YU"]}'
TONOMY_TEST_ACCOUNTS_PASSPHRASE: 'above day fever lemon piano sport'
services:
blockchain:
image: tonomy/blockchain:initialized-development
ports:
- 8888:8888
communication:
image: tonomy/communication:development
env:
BLOCKCHAIN_URL: "http://blockchain:8888"
ports:
- 5000:5000
steps:
- uses: actions/checkout@v4
- name: Delete Tonomy-Contracts directory
run: rm -rf ./Tonomy-Contracts
- name: Get Tonomy-Contracts directory from artifacts
uses: actions/download-artifact@v4
with:
name: Tonomy-Contracts
path: ./Tonomy-Contracts
- name: Enable Corepack before setting up Node
run: corepack enable
- name: Install SDK and Bootstrap blockchain
uses: actions/setup-node@v4
with:
node-version: 22.3.0
cache: yarn
- run: yarn install --immutable
- run: yarn run build
- run: yarn run cli bootstrap
- name: Run integration and governance tests
uses: actions/setup-node@v4
with:
node-version: 22.3.0
cache: yarn
- run: yarn run test:integration
- run: yarn run test:governance