@ -25,8 +25,6 @@ env:
LOG_FORMAT : PRETTY
CARGO_TERM_COLOR : always
RUST_BACKTRACE : full
# Alongside the monorepo in the directory above the $GITHUB_WORKSPACE.
REGISTRY_URI : ${{ github.workspace }}/../hyperlane-registry
jobs:
yarn-install:
@ -88,31 +86,6 @@ jobs:
- name : build
run : yarn build
checkout-registry:
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v4
with:
repository : hyperlane-xyz/hyperlane-registry
ref : main
path : ./hyperlane-registry
# Put alongside the monorepo in the directory above the $GITHUB_WORKSPACE.
# actions/checkout doesn't allow you to checkout a repository outside of the workspace.
# See https://github.com/actions/checkout/issues/197.
- run : mv ./hyperlane-registry ../
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
lint-prettier:
runs-on : ubuntu-latest
needs : [ yarn-install]
@ -145,7 +118,7 @@ jobs:
yarn-test:
runs-on : ubuntu-latest
needs : [ yarn-build, checkout-registry ]
needs : [ yarn-build]
steps:
- uses : actions/checkout@v4
with:
@ -164,24 +137,15 @@ jobs:
!./rust
key : ${{ github.event.pull_request.head.sha || github.sha }}
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
fail-on-cache-miss : true
- name : Checkout registry
uses : ./.github/actions/checkout-registry
- name : Unit Tests
run : yarn test:ci
agent-configs:
runs-on : ubuntu-latest
needs : [ yarn-build, checkout-registry ]
needs : [ yarn-build]
strategy:
fail-fast : false
matrix:
@ -208,17 +172,8 @@ jobs:
!./rust
key : ${{ github.event.pull_request.head.sha || github.sha }}
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
fail-on-cache-miss : true
- name : Checkout registry
uses : ./.github/actions/checkout-registry
- name : Generate ${{ matrix.environment }} agent config
run : |
@ -233,7 +188,7 @@ jobs:
e2e-matrix:
runs-on : larger-runner
if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main') || github.event_name == 'merge_group'
needs : [ yarn-build, checkout-registry ]
needs : [ yarn-build]
strategy:
matrix:
e2e-type : [ cosmwasm, non-cosmwasm]
@ -294,17 +249,8 @@ jobs:
!./rust
key : ${{ github.event.pull_request.head.sha || github.sha }}
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
fail-on-cache-miss : true
- name : Checkout registry
uses : ./.github/actions/checkout-registry
- name : agent tests with CosmWasm
run : cargo test --release --package run-locally --bin run-locally --features cosmos test-utils -- cosmos::test --nocapture
@ -336,7 +282,6 @@ jobs:
prebuild-cli-e2e:
runs-on : larger-runner
if : github.event_name == 'push' || (github.event_name == 'pull_request' && github.base_ref == 'main') || github.event_name == 'merge_group'
needs : [ checkout-registry]
steps:
- uses : actions/checkout@v4
with:
@ -450,24 +395,15 @@ jobs:
!./rust
key : ${{ github.event.pull_request.head.sha || github.sha }}
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
fail-on-cache-miss : true
- name : Checkout registry
uses : ./.github/actions/checkout-registry
- name : cli e2e tests
run : ./typescript/cli/ci-test.sh ${{ matrix.test-type }}
env-test:
runs-on : ubuntu-latest
needs : [ yarn-build, checkout-registry ]
needs : [ yarn-build]
strategy:
fail-fast : false
matrix:
@ -495,17 +431,8 @@ jobs:
!./rust
key : ${{ github.event.pull_request.head.sha || github.sha }}
# A workaround for relative paths not being supported by actions/cache.
# See https://github.com/actions/upload-artifact/issues/176#issuecomment-1367855630.
- run : echo "REGISTRY_URI_ABSOLUTE=$(realpath $REGISTRY_URI)" >> $GITHUB_ENV
- name : registry-cache
uses : actions/cache@v4
with:
path : |
${{ env.REGISTRY_URI_ABSOLUTE }}
key : hyperlane-registry-${{ github.event.pull_request.head.sha || github.sha }}
fail-on-cache-miss : true
- name : Checkout registry
uses : ./.github/actions/checkout-registry
- name : Fork test ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }} deployment
run : cd typescript/infra && ./fork.sh ${{ matrix.environment }} ${{ matrix.module }} ${{ matrix.chain }}