automated test for bootnodes && endpoints #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: daily bootnode validity test | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- bootnodes.json | |
push: | |
branches: | |
- main | |
paths: | |
- bootnodes.json | |
jobs: | |
test_bootnodes: | |
runs-on: self-hosted | |
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: tar test results | |
run: tar -czvf /tmp/bootnode_tests/results.tar.gz /tmp/bootnode_tests | |
- name: archive test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bootnode-test-results | |
path: /tmp/bootnode_tests/results.tar.gz |