60 lines (51 loc) · 1.82 KB
/
zombienetRpcTest.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
name: Zombienet RPC test
on:
workflow_dispatch:
inputs:
astar_tag:
description: 'Release tag version for astar collator'
required: true
default: '4.47.1'
polkadot_tag:
description: 'Release tag version for polkadot relay chain'
required: true
default: '0.9.37'
zombienet_tag:
description: 'Release tag version for zombinet tool'
required: true
default: '1.3.37'
jobs:
rpc-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- run: mkdir -p rpc-tests/bin
- name: Download pre-built linux collator binary
run: |
wget https://github.com/AstarNetwork/Astar/releases/download/v${{ github.event.inputs.astar_tag }}/astar-collator-v${{ github.event.inputs.astar_tag }}-ubuntu-x86_64.tar.gz
tar -xvf astar-collator-*-ubuntu-x86_64.tar.gz
chmod +x ./astar-collator
mv astar-collator rpc-tests/bin/astar-collator
- name: Copy polkadot relay chain binary
run: |
wget https://github.com/paritytech/polkadot/releases/download/v${{ github.event.inputs.polkadot_tag }}/polkadot
chmod +x ./polkadot
mv polkadot rpc-tests/bin/polkadot
- name: Copy zombinet testing binary
run: |
wget https://github.com/paritytech/zombienet/releases/download/v${{ github.event.inputs.zombienet_tag }}/zombienet-linux-x64
chmod +x ./zombienet-linux-x64
mv zombienet-linux-x64 rpc-tests/bin/zombienet-linux-x64
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install yarn
run: |
npm install -g yarn
yarn install
working-directory: ./rpc-tests
- name: Run tests
run: yarn test
working-directory: ./rpc-tests