Skip to content

Commit 9af02f7

Browse files
ggwpezbkchr
andauthored
[CI] Update try-runtime CLI (#419)
Depends on paritytech/try-runtime-gha#2 Changes: - Enable `all` try-runtime checks for Parachain runtimes - Update GHA - [x] Does not require a CHANGELOG entry --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
1 parent 08ab65e commit 9af02f7

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/check-migrations.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ jobs:
6060
if [[ "${{ matrix.runtime.is_relay }}" == "true" ]]; then
6161
EXTRA_FLAGS+="--no-weight-warnings"
6262
echo "Disabling weight checks since we are on a relay"
63+
64+
echo "Disabling try-state checks on the relay"
65+
CHECKS="pre-and-post"
6366
else
6467
echo "Enabling weight checks since we are not on a relay"
68+
69+
echo "Enabling try-state checks on the non-relay"
70+
CHECKS="all"
6571
fi
6672
6773
# Disable the spec version check when we dont want to release.
@@ -74,15 +80,17 @@ jobs:
7480
fi
7581
7682
echo "Flags: $EXTRA_FLAGS"
83+
echo "Checks: $CHECKS"
7784
7885
echo "EXTRA_ARGS=$EXTRA_FLAGS" >> $GITHUB_ENV
86+
echo "CHECKS=$CHECKS" >> $GITHUB_ENV
7987
8088
- name: Run ${{ matrix.runtime.name }} Runtime Checks
81-
uses: "paritytech/try-runtime-gha@v0.1.0"
89+
uses: "paritytech/try-runtime-gha@v0.2.0"
8290
with:
8391
runtime-package: ${{ matrix.runtime.package }}
8492
node-uri: ${{ matrix.runtime.uri }}
85-
checks: "pre-and-post"
93+
checks: ${{ env.CHECKS }}
8694
extra-args: ${{ env.EXTRA_ARGS }}
8795

8896
# This will only run if all the tests in its "needs" array passed.

0 commit comments

Comments
 (0)