Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

add try-runtime-ci

add try-runtime-ci #9

# Test storage migration using try-runtime on PRs with label "migration-mainnet"
name: Test storage migration (mainnet)
on:
pull_request:
types: [labeled, synchronize]
push:
branches: [ main ]
jobs:
try_runtime:
if: contains(github.event.pull_request.labels.*.name, 'migration-mainnet')
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup try-runtime
uses: ./.github/actions/setup-try-runtime
# a live RPC node is required for the below work
- run: |
echo "Found label "migration-mainnet". Running tests"
echo "---------- Running try-runtime for mainnet extended-parachain-template ----------"
cargo build -p parachain-template-node --locked --release --no-default-features --features try-runtime && \
try-runtime --runtime ./target/release/wbuild/mainnet-runtime/target/wasm32-unknown-unknown/release/mainnet_runtime.wasm \
on-runtime-upgrade live --uri wss://try-runtime-rpc-node.parity.io:443
env:
RUST_LOG: remote-ext=debug,runtime=debug