Skip to content

Commit

Permalink
ci: add try-runtime example
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 15, 2024
1 parent 5295f0c commit 8779e58
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-test-try_runtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check try-runtime
on:
pull_request:
paths:
- '.github/actions/cargo-command/**'
- '.github/workflows/pr-test-try_runtime.yaml'
- 'pallets/**'
- 'primitives/**'
- 'runtime/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
try-runtime:
runs-on: [self-hosted, general]
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y librocksdb-dev
- name: Install try-runtime-cli
run: cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.7.0 --locked
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build testnet runtime
uses: ./.github/actions/cargo-command
with:
package: timechain-runtime
feature: try-runtime
- name: Run try-runtime test
run: try-runtime --runtime target/release/wbuild/timechain-runtime/timechain_runtime.wasm on-runtime-upgrade live --uri wss://rpc.testnet.analog.one --pallet staking --pallet session

0 comments on commit 8779e58

Please sign in to comment.