Skip to content

Commit 0539b55

Browse files
committed
Use the published CLI for registry warp checks
1 parent 184d411 commit 0539b55

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/check-warp-deploy.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323
ref: ${{ github.event.pull_request.head.sha }}
2424
fetch-depth: 0
2525

26+
- uses: actions/setup-node@v6
27+
with:
28+
node-version: 22
29+
30+
- name: Install Hyperlane CLI
31+
run: npm i -g @hyperlane-xyz/cli@latest
32+
2633
- name: Determine Base & Head SHA
2734
id: determine-base-sha
2835
run: |
@@ -32,6 +39,7 @@ jobs:
3239
- name: Check Warp Deploy
3340
env:
3441
# Only set PR_NUMBER for non-fork PRs (enables PR commenting)
42+
HYPERLANE_SKIP_VERSION_CHECK: '1'
3543
PR_NUMBER: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.number || '' }}
3644
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
3745
run: |

scripts/check-warp-deploy.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,12 @@ EXIT_CODE=0
4646
for WARP_ROUTE_ID in $WARP_ROUTE_IDS; do
4747
export WARP_ROUTE_ID
4848

49-
# Check 1: Registry YAML vs on-chain (uses --forceRegistryConfig to read registry directly)
50-
if docker run --rm \
51-
-e REGISTRY_COMMIT=$HEAD_COMMIT \
52-
-e CI=true \
53-
ghcr.io/hyperlane-xyz/hyperlane-monorepo:main \
54-
./node_modules/.bin/tsx \
55-
./typescript/infra/scripts/check/check-deploy.ts \
56-
-e mainnet3 \
57-
-m warp \
58-
--warpRouteId "$WARP_ROUTE_ID" \
59-
--forceRegistryConfig; then
49+
# Check 1: Registry YAML vs on-chain via published CLI
50+
if hyperlane \
51+
--registry "$(pwd)" \
52+
-y \
53+
warp check \
54+
--warp-route-id "$WARP_ROUTE_ID"; then
6055
ONCHAIN_STATUS=""
6156
else
6257
ONCHAIN_STATUS=""

0 commit comments

Comments
 (0)