Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/cli-install-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CLI Install Test

on:
workflow_call:
inputs:
include-windows:
description: 'Include Windows in the test matrix'
type: boolean
default: false
workflow_dispatch:
inputs:
include-windows:
description: 'Include Windows in the test matrix'
type: boolean
default: true
schedule:
# Run nightly at 6am UTC with full matrix (including Windows)
- cron: '0 6 * * *'

jobs:
cli-install-test:
strategy:
matrix:
os: ${{ (github.event_name == 'schedule' || inputs.include-windows) && fromJson('["depot-ubuntu-latest", "depot-macos-latest", "depot-windows-2025-8"]') || fromJson('["depot-ubuntu-latest", "depot-macos-latest"]') }}
node-version: [24, 25]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- name: install-hyperlane-cli
id: install-hyperlane-cli
uses: ./.github/actions/install-cli
with:
ref: ${{ github.sha }}
no-cache: true

- name: Test run the CLI
run: hyperlane --version
29 changes: 5 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,33 +124,14 @@ jobs:
echo "all_latest=$all_latest" >> $GITHUB_OUTPUT

# If we detect that not all packages are published, we run the
# cli-install-cross-platform-release-test workflow to verify that the CLI installs correctly on all platforms.
# In all other cases, we already have a barebones `cli-install` test on the default CI platform
# which will catch most issues before any offending PR is merged.
# cli-install-test workflow to verify that the CLI installs correctly.
# Windows is excluded here for speed but tested nightly via cli-install-test.yml.
cli-install-cross-platform-release-test:
needs: [check-latest-published]
if: needs.check-latest-published.outputs.all_latest == 'false'
strategy:
matrix:
os: [depot-ubuntu-latest, depot-macos-latest, depot-windows-2025-8]
node-version: [24, 25]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- name: install-hyperlane-cli
id: install-hyperlane-cli
uses: ./.github/actions/install-cli
with:
ref: ${{ github.sha }}
no-cache: true

- name: Test run the CLI
run: hyperlane --version
uses: ./.github/workflows/cli-install-test.yml
with:
include-windows: false

# This job publishes the release to NPM.
publish-release:
Expand Down
Loading