Skip to content

feat: added ics27-2 gmp application #19077

feat: added ics27-2 gmp application

feat: added ics27-2 gmp application #19077

Workflow file for this run

name: Tests / E2E
on:
workflow_dispatch:
pull_request:
paths:
- '**/go.mod'
- '**/*.go'
- '.github/workflows/e2e.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
DOCKER_IMAGE_NAME: ghcr.io/cosmos/ibc-go-simd
jobs:
docker-build:
runs-on: depot-ubuntu-24.04-4
outputs:
simd-tag: ${{ steps.get-tag.outputs.simd-tag }}
steps:
- uses: actions/checkout@v5
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: get-tag
run: |
if [ -z "${{ github.event.pull_request.number }}" ]
then
echo "simd-tag=e2e-${{ github.sha }}" >> $GITHUB_OUTPUT
else
tag="e2e-pr-${{ github.event.pull_request.number }}"
echo "Using tag $tag"
echo "simd-tag=$tag" >> $GITHUB_OUTPUT
fi
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
tags: ${{ env.DOCKER_IMAGE_NAME }}:${{ steps.get-tag.outputs.simd-tag }}
push: false
build-args: |
IBC_GO_VERSION=${{ github.ref_name }}
# To avoid having to push to the registry, making it possible for external contributors to run this
- name: Save Docker image as artifact
run: docker save $(echo ${{ env.DOCKER_IMAGE_NAME }}:${{ steps.get-tag.outputs.simd-tag }} | cut -d',' -f1) | gzip > simd-image.tar.gz
- uses: actions/upload-artifact@v4
with:
name: simd-image
path: simd-image.tar.gz
build-test-matrix:
runs-on: depot-ubuntu-24.04-4
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v5
with:
repository: cosmos/ibc-go
- uses: actions/setup-go@v6
with:
go-version: '1.24'
cache-dependency-path: 'go.sum'
- id: set-matrix
run: |
output=$(go run cmd/build_test_matrix/main.go)
echo "matrix=$output" >> $GITHUB_OUTPUT
env:
TEST_EXCLUSIONS: 'TestUpgradeTestSuite'
e2e-tests:
runs-on: depot-ubuntu-24.04-4
needs:
- build-test-matrix
- docker-build
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.build-test-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v5
with:
repository: cosmos/ibc-go
- uses: actions/setup-go@v6
with:
go-version: '1.24'
cache-dependency-path: 'e2e/go.sum'
- name: Download image from docker build
uses: actions/download-artifact@v5
with:
name: simd-image
- run: docker load -i simd-image.tar.gz
- name: Run e2e Test
id: e2e_test
env:
CHAIN_IMAGE: '${{ env.DOCKER_IMAGE_NAME }}'
CHAIN_A_TAG: '${{ needs.docker-build.outputs.simd-tag }}'
CHAIN_B_TAG: '${{ needs.docker-build.outputs.simd-tag }}'
CHAIN_C_TAG: '${{ needs.docker-build.outputs.simd-tag }}'
CHAIN_D_TAG: '${{ needs.docker-build.outputs.simd-tag }}'
E2E_CONFIG_PATH: 'ci-e2e-config.yaml'
run: |
cd e2e
make e2e-test test=${{ matrix.test }}
- name: Upload Diagnostics
uses: actions/upload-artifact@v4
if: ${{ failure() }}
continue-on-error: true
with:
name: '${{ matrix.entrypoint }}-${{ matrix.test }}'
path: e2e/diagnostics
retention-days: 5