guardianset: add delegated guardian set 7 proto file and VAA #3934
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Wormchain's end-to-end Interchain Tests | |
| on: | |
| pull_request: | |
| push: | |
| tags: | |
| - "**" | |
| branches: | |
| - "main" | |
| permissions: | |
| contents: read | |
| env: | |
| GO_VERSION: 1.21 | |
| TAR_PATH: /tmp/wormchain-docker-image.tar | |
| IMAGE_NAME: wormchain-docker-image | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache-dependency-path: wormchain/interchaintest/go.sum | |
| cache: false | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 | |
| - name: Build and export | |
| uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | |
| with: | |
| context: . | |
| file: wormchain/Dockerfile.ict | |
| tags: wormchain:local | |
| outputs: type=docker,dest=${{ env.TAR_PATH }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: ${{ env.IMAGE_NAME }} | |
| path: ${{ env.TAR_PATH }} | |
| e2e-tests: | |
| needs: build-docker | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # names of `make` commands to run tests | |
| test: | |
| - "ictest-cancel-upgrade" | |
| - "ictest-slashing-params-update-vaa" | |
| - "ictest-upgrade" | |
| - "ictest-wormchain" | |
| # Disabled due to flakiness in CI. | |
| # - "ictest-ibc-receiver" | |
| - "ictest-validator-hotswap" | |
| - "ictest-cw-wormhole" | |
| - "ictest-cw-shutdown-contracts" | |
| fail-fast: false | |
| steps: | |
| - name: Set up Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| cache-dependency-path: interchaintest/go.sum | |
| cache: false | |
| - name: checkout chain | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Download Tarball Artifact | |
| uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | |
| with: | |
| name: ${{ env.IMAGE_NAME }} | |
| path: /tmp | |
| - name: Load Docker Image | |
| run: | | |
| docker image load -i ${{ env.TAR_PATH }} | |
| docker image ls -a | |
| - name: Run Test | |
| id: run_test | |
| continue-on-error: true | |
| working-directory: wormchain | |
| run: | | |
| export DOCKER_API_VERSION=1.44 | |
| make ${{ matrix.test }} | |
| - name: Retry Failed Test | |
| if: steps.run_test.outcome == 'failure' | |
| working-directory: wormchain | |
| run: | | |
| export DOCKER_API_VERSION=1.44 | |
| for i in 1 2; do | |
| echo "Retry attempt $i" | |
| if make ${{ matrix.test }}; then | |
| echo "Test passed on retry" | |
| exit 0 | |
| fi | |
| done | |
| echo "Test failed after retries" | |
| exit 1 |