Add backend switching job for EventMesh - Test PR #89
Workflow file for this run
This file contains 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: e2e-on-k8s | |
on: | |
pull_request: | |
branches: | |
- main | |
- "release-**" | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
- "sec-scanners-config.yaml" | |
jobs: | |
wait-until-build-succeeds: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for the 'pull-eventing-manager-build' job to succeed | |
id: pull-wait-build | |
uses: kyma-project/wait-for-commit-status-action@2b3ffe09af8b6f40e1213d5fb7f91a7bd41ffb20 | |
with: | |
context: "pull-eventing-manager-build" | |
commit_ref: "${{ github.event.pull_request.head.sha }}" # Note: 'github.event.pull_request.head.sha' is not same as 'github.sha' on pull requests. | |
timeout: 600000 # 10 minutes in milliseconds | |
# The check interval is kept long otherwise it will exhaust the GitHub rate limit (More info: https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) | |
check_interval: 60000 # 1 minute in milliseconds | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GITHUB_OWNER: "${{ github.repository_owner }}" | |
GITHUB_REPO: "eventing-manager" | |
backend-switching: | |
needs: wait-until-build-succeeds | |
uses: "./.github/workflows/e2e-backend-switching-reuseable.yml" | |
with: | |
eventing-manager-image: europe-docker.pkg.dev/kyma-project/dev/eventing-manager:PR-${{ github.event.number }} | |
cluster-name-prefix: "ghem-" | |
secrets: inherit |