-
Notifications
You must be signed in to change notification settings - Fork 165
120 lines (97 loc) · 3.42 KB
/
verify-cli-examples.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
114
115
116
117
118
119
120
name: Verify Cli Examples
on: pull_request
jobs:
test-cosmos-examples:
runs-on: ubuntu-22.04
name: 'Test Cosmos Examples'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Compile EVM Smart Contracts
run: npm run build
- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": true},"multiversx": {"enabled": false}}' > config/ci.json
- name: Test
run: |
NODE_ENV=ci npm run test:cosmos
test-evm-examples:
runs-on: ubuntu-22.04
name: 'Test EVM Examples'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Compile EVM Smart Contracts
run: |
npm run build
- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": false},"multiversx": {"enabled": false}}' > config/ci.json
- name: Test
run: |
NODE_ENV=ci npm run test:evm
test-multiversx-examples:
runs-on: ubuntu-22.04
name: 'Test Multiversx Examples'
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.12.0"
env:
discovery.type: single-node
xpack.security.enabled: false
ports:
- "9200:9200"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Prerequisites
run: |
pip3 install multiversx-sdk-cli==v9.3.1
mxpy localnet setup
cp -rf ./examples/multiversx/external.toml ./localnet/validator00/config
cp -rf ./examples/multiversx/external.toml ./localnet/validator01/config
cp -rf ./examples/multiversx/external.toml ./localnet/validator02/config
- name: Install Dependencies
run: npm ci
- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Override config/ci.json
run: |
echo '{"cosmos": {"enabled": false},"multiversx": {"enabled": true}}' > config/ci.json
- name: Compile EVM Smart Contracts
run: |
npm run build
- name: Test
run: |
mxpy localnet start &
sleep 120
NODE_ENV=ci npm run test:multiversx