mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 15:28:00 +00:00
1e83f6eb06
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/83fd05a356d7e2593de66fc9913b3002723633cb...0b7f8abb1508181956e8e162db84b466c27e18ce) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
87 lines
2.8 KiB
YAML
87 lines
2.8 KiB
YAML
# This workflow performs the Extrinsic Ordering Check on demand using a binary
|
|
|
|
name: Release - Extrinsic Ordering Check from Binary
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
reference_url:
|
|
description: The WebSocket url of the reference node
|
|
default: wss://kusama-statemine-rpc.paritytech.net
|
|
required: true
|
|
binary_url:
|
|
description: A url to a Linux binary for the node containing the runtime to test
|
|
default: https://releases.parity.io/cumulus/polkadot-v0.9.21/polkadot-parachain
|
|
required: true
|
|
chain:
|
|
description: The name of the chain under test. Usually, you would pass a local chain
|
|
default: statemine-local
|
|
required: true
|
|
|
|
jobs:
|
|
check:
|
|
name: Run check
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CHAIN: ${{github.event.inputs.chain}}
|
|
BIN: node-bin
|
|
BIN_PATH: ./tmp/$BIN
|
|
BIN_URL: ${{github.event.inputs.binary_url}}
|
|
REF_URL: ${{github.event.inputs.reference_url}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
- name: Fetch binary
|
|
run: |
|
|
echo Creating a temp dir to download and run binary
|
|
mkdir -p tmp
|
|
echo Fetching $BIN_URL
|
|
wget $BIN_URL -O $BIN_PATH
|
|
chmod a+x $BIN_PATH
|
|
$BIN_PATH --version
|
|
|
|
- name: Start local node
|
|
run: |
|
|
echo Running on $CHAIN
|
|
$BIN_PATH --chain=$CHAIN -- --chain polkadot-local &
|
|
|
|
- name: Prepare output
|
|
run: |
|
|
VERSION=$($BIN_PATH --version)
|
|
echo "Metadata comparison:" >> output.txt
|
|
echo "Date: $(date)" >> output.txt
|
|
echo "Reference: $REF_URL" >> output.txt
|
|
echo "Target version: $VERSION" >> 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 --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/ci/github/extrinsic-ordering-filter.sh output.txt)
|
|
echo -e $SUMMARY
|
|
echo -e $SUMMARY >> output.txt
|
|
|
|
- name: Show result
|
|
run: |
|
|
cat output.txt
|
|
|
|
- name: Stop our local node
|
|
run: |
|
|
pkill $BIN
|
|
continue-on-error: true
|
|
|
|
- name: Save output as artifact
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
|
with:
|
|
name: ${{ env.CHAIN }}
|
|
path: |
|
|
output.txt
|