mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
270540cf46
* Add check_bootnode script and github action * fix mktemp for linux machines * Update check_bootnodes.sh show logs to see what's going wrong * fix ephemeral ports and fetch polkadot * fix check-bootnodes.yml * increase node spawn holdoff * disable fail-fast * refactor, separate out check_bootnodes and make it posix-compliant * add new job for detecting new bootnodes * fix check-bootnodes.yml * only check all bootnodes on release * Add test bad bootnode REVERT ME before merging PR. Should cause the test to fail, then when we remove it, we should succeed. Sadly doesn't account for a new successful bootnode, should ask if we have one we can use for testing. * fix paths * fix paths and git... hopefully * this better work... * fix * test * last test * Revert "Add test bad bootnode" This reverts commit 540dd9754a1f8e2d3fef33f7f5a033b8c2aa4dcb. * Update check_bootnodes.sh * optimisations Begin polling the RPC node right after spawning, allowing us to break early on detecting peers * increase holdoff to 5 seconds * dont delete chainspec til we kill the node * Update check-bootnodes.yml * Remove checking bootnodes on pushing of this branch --------- Co-authored-by: parity-processbot <>
29 lines
881 B
YAML
29 lines
881 B
YAML
# If a chainspec file is updated with new bootnodes, we check to make sure those bootnodes are contactable
|
||
|
||
name: Check new bootnodes
|
||
on:
|
||
pull_request:
|
||
paths:
|
||
- 'node/service/chain-specs/*.json'
|
||
|
||
jobs:
|
||
check_bootnodes:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout sources
|
||
uses: actions/checkout@v3
|
||
with:
|
||
fetch-depth: 0
|
||
- name: Install polkadot
|
||
shell: bash
|
||
run: |
|
||
curl -L "$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest \
|
||
| jq -r '.assets | .[] | select(.name == "polkadot").browser_download_url')" \
|
||
| sudo tee /usr/local/bin/polkadot > /dev/null
|
||
sudo chmod +x /usr/local/bin/polkadot
|
||
polkadot --version
|
||
- name: Check new bootnodes
|
||
shell: bash
|
||
run: |
|
||
scripts/ci/github/check_new_bootnodes.sh
|