Skip to content

Commit

Permalink
ci: add cron for compatibility tests on main. (#6735)
Browse files Browse the repository at this point in the history
* ci: add cron for compatibility tests on main.

* Update .github/workflows/e2e-compatibility.yaml
  • Loading branch information
DimitrisJim authored Jul 2, 2024
1 parent 56e526c commit 67d4864
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/e2e-compatibility.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Runs compatibility tests for ibc-go.
# Can be triggered manually by setting values for release-branch and ibc-go-version.
# On a weekly schedule with default values of 'main' for release-branch and 'main-cron-job' for ibc-go-version.
name: Compatibility E2E
on:
schedule:
# run on 20:00 on Sunday.
- cron: '0 20 * * 6'
workflow_dispatch:
inputs:
release-branch:
Expand All @@ -22,7 +28,8 @@ env:
REGISTRY: ghcr.io
ORG: cosmos
IMAGE_NAME: ibc-go-simd
RELEASE_BRANCH: '${{ inputs.release-branch }}'
RELEASE_BRANCH: ${{ inputs.release-branch || 'main' }}
IBC_GO_VERSION: ${{ inputs.ibc-go-version || 'latest' }}

jobs:
determine-test-directory:
Expand Down Expand Up @@ -67,7 +74,7 @@ jobs:
if: env.RELEASE_BRANCH == matrix.release-branch
run: |
docker_tag="$(echo ${{ matrix.release-branch }} | sed 's/[^a-zA-Z0-9\.]/-/g')"
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag" --build-arg IBC_GO_VERSION=${{ inputs.ibc-go-version }}
docker build . -t "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag" --build-arg IBC_GO_VERSION=${{ env.IBC_GO_VERSION }}
docker push "${REGISTRY}/${ORG}/${IMAGE_NAME}:$docker_tag"
- name: Display image details
if: env.RELEASE_BRANCH == matrix.release-branch
Expand Down Expand Up @@ -316,4 +323,4 @@ jobs:
uses: ./.github/workflows/e2e-compatibility-workflow-call.yaml
with:
test-file-directory: "${{ needs.determine-test-directory.outputs.test-directory }}"
test-suite: "transfer-channel-upgrade-chain-b"
test-suite: "transfer-channel-upgrade-chain-b"

0 comments on commit 67d4864

Please sign in to comment.