forked from polkawallet-io/bridge
-
Notifications
You must be signed in to change notification settings - Fork 5
100 lines (93 loc) · 2.82 KB
/
xcm-tests.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
name: XCM tests
on:
schedule:
- cron: '12 */2 * * *' # Run every 2 hours
push:
branches:
- master
pull_request:
branches:
- master
jobs:
chopsticks_kintsugi_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Launch chopsticks
timeout-minutes: 3
run: |
npx --yes @acala-network/[email protected] \
xcm \
-r scripts/configs/kusama.yml \
-p scripts/configs/kintsugi.yml \
-p scripts/configs/karura.yml \
-p scripts/configs/bifrost.yml \
&> log.txt &
echo "Waiting for log to show chopsticks is ready..."
tail -f log.txt | grep -q "Connected parachains"
echo "... detected chopsticks is ready."
- name: Run Kintsugi tests
run: |
yarn install --frozen-lockfile
npx ts-node scripts/kintsugi-chopsticks-test.ts
- name: Show error log
if: failure()
run: |
tail -n 100 log.txt
- name: Report status to Discord
uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: kintsugi-chopsticks-logs
path: log.txt
retention-days: 7
chopsticks_interlay_test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Launch chopsticks
timeout-minutes: 3
run: |
npx --yes @acala-network/[email protected] \
xcm \
-r scripts/configs/polkadot.yml \
-p scripts/configs/interlay.yml \
-p scripts/configs/hydradx.yml \
-p scripts/configs/acala.yml \
-p scripts/configs/astar.yml \
-p scripts/configs/bifrost-polkadot.yml \
-p scripts/configs/phala.yml \
&> log.txt &
echo "Waiting for log to show chopsticks is ready..."
tail -f log.txt | grep -q "Connected parachains"
echo "... detected chopsticks is ready."
- name: Run Interlay tests
run: |
yarn install --frozen-lockfile
npx ts-node scripts/interlay-chopsticks-test.ts
- name: Show error log
if: failure()
run: |
tail -n 100 log.txt
- name: Report status to Discord
uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: interlay-chopsticks-logs
path: log.txt
retention-days: 7