Skip to content

Commit 8373177

Browse files
committed
update check-migration ci
1 parent 31763c5 commit 8373177

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/check-migrations.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Migrations
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: [ "master" ]
66
tags:
77
- v[0-9]+.[0-9]+.[0-9]+*
88
workflow_dispatch:
@@ -18,9 +18,9 @@ jobs:
1818
strategy:
1919
matrix:
2020
runtime:
21-
- astar
22-
- shiden
23-
- shibuya
21+
- { name: astar, endpoint: ASTAR_RUNTIME_ENDPOINT }
22+
- { name: shiden, endpoint: SHIDEN_RUNTIME_ENDPOINT }
23+
- { name: shibuya, endpoint: SHIBUYA_RUNTIME_ENDPOINT }
2424
steps:
2525
- name: Checkout sources
2626
uses: actions/checkout@v4
@@ -47,13 +47,16 @@ jobs:
4747
echo "Flags: $EXTRA_FLAGS"
4848
echo "EXTRA_ARGS=$EXTRA_FLAGS" >> $GITHUB_ENV
4949
50-
- name: Build ${{ matrix.runtime }} runtime
51-
run: cargo build --release --locked --package ${{ matrix.runtime }}-runtime --features try-runtime
50+
- name: Build ${{ matrix.runtime.name }} runtime
51+
run: cargo build --release --locked --package ${{ matrix.runtime.name }}-runtime --features try-runtime
5252

53-
- name: Run ${{ matrix.runtime }} runtime checks
53+
- name: Run ${{ matrix.runtime.name }} runtime checks
54+
timeout-minutes: 60
55+
env:
56+
ENDPOINT: ${{ secrets[matrix.runtime.endpoint] }}
5457
run: |
55-
PACKAGE_NAME=${{ matrix.runtime }}-runtime
58+
PACKAGE_NAME=${{ matrix.runtime.name }}-runtime
5659
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
5760
RUNTIME_BLOB_PATH=./target/release/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
5861
59-
npx @acala-network/chopsticks try-runtime -c ${{ matrix.runtime }} --import-storage .github/try-runtime-storage.yml --checks All --runtime $RUNTIME_BLOB_PATH ${{ env.EXTRA_ARGS }}
62+
npx @acala-network/chopsticks try-runtime -c ${{ matrix.runtime.name }} -e ${{ env.ENDPOINT }} --import-storage .github/try-runtime-storage.yml --checks All --runtime $RUNTIME_BLOB_PATH ${{ env.EXTRA_ARGS }}

0 commit comments

Comments
 (0)