-
Notifications
You must be signed in to change notification settings - Fork 42
57 lines (48 loc) · 1.57 KB
/
test-multiversex.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
name: Run Tests for MultiVersX
on: pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
arch: [amd64]
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: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v4
- name: Download and Install Multiversx Binary
run: |
pip3 install multiversx-sdk-cli==v9.3.1
mxpy localnet setup
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator00/config
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator01/config
cp -rf ./packages/axelar-local-dev-multiversx/external.toml ./localnet/validator02/config
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:core && npm run build:multiversx
- name: Test
timeout-minutes: 15
run: |
nohup sh -c "mxpy localnet start" | tee nohup.out &
sleep 30
npm run test:multiversx