Skip to content

Commit

Permalink
[CI] Update try-runtime CLI (polkadot-fellows#419)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
ggwpez and bkchr authored Aug 12, 2024
1 parent 08ab65e commit 9af02f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/check-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ jobs:
if [[ "${{ matrix.runtime.is_relay }}" == "true" ]]; then
EXTRA_FLAGS+="--no-weight-warnings"
echo "Disabling weight checks since we are on a relay"
echo "Disabling try-state checks on the relay"
CHECKS="pre-and-post"
else
echo "Enabling weight checks since we are not on a relay"
echo "Enabling try-state checks on the non-relay"
CHECKS="all"
fi
# Disable the spec version check when we dont want to release.
Expand All @@ -74,15 +80,17 @@ jobs:
fi
echo "Flags: $EXTRA_FLAGS"
echo "Checks: $CHECKS"
echo "EXTRA_ARGS=$EXTRA_FLAGS" >> $GITHUB_ENV
echo "CHECKS=$CHECKS" >> $GITHUB_ENV
- name: Run ${{ matrix.runtime.name }} Runtime Checks
uses: "paritytech/try-runtime-gha@v0.1.0"
uses: "paritytech/try-runtime-gha@v0.2.0"
with:
runtime-package: ${{ matrix.runtime.package }}
node-uri: ${{ matrix.runtime.uri }}
checks: "pre-and-post"
checks: ${{ env.CHECKS }}
extra-args: ${{ env.EXTRA_ARGS }}

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

0 comments on commit 9af02f7

Please sign in to comment.