forked from polkawallet-io/bridge
-
Notifications
You must be signed in to change notification settings - Fork 5
80 lines (74 loc) · 2.27 KB
/
xcm-assethub-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
---
name: AssetHub XCM tests
on:
schedule:
- cron: '38 */2 * * *' # Run every 2 hours
push:
branches:
- master
pull_request:
branches:
- master
jobs:
chopsticks_kusama_assethub_test:
runs-on: ubuntu-latest
timeout-minutes: 10
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/statemine.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 Kusama AssetHub tests
run: |
yarn install --frozen-lockfile
npx ts-node scripts/kusama-chopsticks-assethub-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 }}
chopsticks_polkadot_assethub_test:
runs-on: ubuntu-latest
timeout-minutes: 10
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/statemint.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 Polkadot AssetHub tests
run: |
yarn install --frozen-lockfile
npx ts-node scripts/polkadot-chopsticks-assethub-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 }}