-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.45 KB
/
pr-test-try_runtime.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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]
strategy:
fail-fast: false
matrix:
chain: [mainnet]
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.8.0 --locked
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build ${{ matrix.chain }} runtime
uses: ./.github/actions/cargo-command
with:
package: timechain-runtime
feature: try-runtime
- name: Download current snapshot
run: curl -LO https://analog-public.s3.amazonaws.com/state-snapshot/${{ matrix.chain }}-state.snap
- name: Run try-runtime test
run: try-runtime --runtime target/release/wbuild/timechain-runtime/timechain_runtime.wasm on-runtime-upgrade --blocktime 6000 --checks all --disable-spec-version-check --disable-idempotency-checks snap --path ${{ matrix.chain }}-state.snap