@@ -2,7 +2,7 @@ name: Check Migrations
2
2
3
3
on :
4
4
push :
5
- branches : ["master"]
5
+ branches : [ "master" ]
6
6
tags :
7
7
- v[0-9]+.[0-9]+.[0-9]+*
8
8
workflow_dispatch :
18
18
strategy :
19
19
matrix :
20
20
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 }
24
24
steps :
25
25
- name : Checkout sources
26
26
uses : actions/checkout@v4
@@ -47,13 +47,16 @@ jobs:
47
47
echo "Flags: $EXTRA_FLAGS"
48
48
echo "EXTRA_ARGS=$EXTRA_FLAGS" >> $GITHUB_ENV
49
49
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
52
52
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] }}
54
57
run : |
55
- PACKAGE_NAME=${{ matrix.runtime }}-runtime
58
+ PACKAGE_NAME=${{ matrix.runtime.name }}-runtime
56
59
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm
57
60
RUNTIME_BLOB_PATH=./target/release/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME
58
61
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