mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
Add extrinsic ordering filtering (#3631)
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
inputs:
|
||||
reference_url:
|
||||
description: The WebSocket url of the reference node
|
||||
default: wss://rpc.polkadot.io
|
||||
default: wss://kusama-rpc.polkadot.io
|
||||
required: true
|
||||
binary_url:
|
||||
description: A url to a Linux binary for the node containing the runtime to test
|
||||
@@ -14,7 +14,7 @@ on:
|
||||
required: true
|
||||
chain:
|
||||
description: The name of the chain under test. Usually, you would pass a local chain
|
||||
default: polkadot-local
|
||||
default: kusama-local
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
@@ -27,6 +27,8 @@ jobs:
|
||||
REF_URL: ${{github.event.inputs.reference_url}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Fetch binary
|
||||
run: |
|
||||
echo Fetching $BIN_URL
|
||||
@@ -46,17 +48,26 @@ jobs:
|
||||
echo "Date: $(date)" >> output.txt
|
||||
echo "Reference: $REF_URL" >> output.txt
|
||||
echo "Target version: $VERSION" >> output.txt
|
||||
echo "-------------------------------------------" >> output.txt
|
||||
echo "Chain: $CHAIN" >> output.txt
|
||||
echo "----------------------------------------------------------------------" >> output.txt
|
||||
|
||||
- name: Pull polkadot-js-tools image
|
||||
run: docker pull jacogr/polkadot-js-tools
|
||||
|
||||
- name: Compare the metadata
|
||||
run: |
|
||||
CMD="docker run --network host jacogr/polkadot-js-tools metadata $REF_URL ws://localhost:9944"
|
||||
CMD="docker run --pull always --network host jacogr/polkadot-js-tools metadata $REF_URL ws://localhost:9944"
|
||||
echo -e "Running:\n$CMD"
|
||||
$CMD >> output.txt
|
||||
sed -z -i 's/\n\n/\n/g' output.txt
|
||||
cat output.txt | egrep -n -i ''
|
||||
SUMMARY=$(./scripts/github/extrinsic-ordering-filter.sh output.txt)
|
||||
echo -e $SUMMARY
|
||||
echo -e $SUMMARY >> output.txt
|
||||
|
||||
- name: Show result
|
||||
run: cat output.txt
|
||||
run: |
|
||||
cat output.txt
|
||||
|
||||
- name: Stop our local node
|
||||
run: pkill polkadot
|
||||
|
||||
Reference in New Issue
Block a user