-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (38 loc) · 1.38 KB
/
test_bootnodes.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
name: Bootnode validity test
on:
schedule:
- cron: '0 8 * * *'
jobs:
test_bootnodes:
# runs-on: self-hosted
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
run: |
apt-get update
apt-get install -y jq curl
- name: Prepare polkadot binary
run: |
curl -L https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.10.0/polkadot -o polkadot
chmod +x polkadot
mv polkadot /usr/local/bin/
- name: Prepare polkadot-parachain binary
run: |
curl -L https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-parachain-v1.10.1/polkadot-parachain -o polkadot-parachain
chmod +x polkadot-parachain
mv polkadot-parachain /usr/local/bin/
- name: Test bootnode integrity
run: bash ./scripts/test_bootnodes.sh
- run: bash ./scripts/missing_bootnodes.sh > /tmp/bootnode_tests/missing_bootnodes.json
- run: cat /tmp/bootnode_tests/missing_bootnodes.json
- run: bash ./scripts/broken_bootnodes.sh > /tmp/bootnode_tests/broken_bootnodes.json
- run: cat /tmp/bootnode_tests/broken_bootnodes.json
- name: archive test results
uses: actions/upload-artifact@v4
with:
name: bootnode-test-results
path: /tmp/bootnode_tests