Additional Istio resources into the reconciliation (#346) #12
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
# This workflow is responsible for all kinds of integration tests that are run after push to main. | |
# Those tests depend on a container image so in the first job we wait for the image build to succeed. | |
name: main integration tests | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- "**/*.md" | |
- "tests/performance/**" | |
- "OWNERS" | |
- "CODEOWNERS" | |
- "sec-scanners-config.yaml" | |
- ".github/**" #Ignoring since build job isn't triggered on the workflow directory changes | |
branches: | |
- main | |
jobs: | |
wait-for-image-build: | |
name: Wait for image build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/wait-for-job-succeed-or-fail | |
with: | |
job-name: 'post-istio-operator-build' | |
github-auth-token: ${{ secrets.GITHUB_TOKEN }} | |
istio-upgrade-integration-test: | |
name: Istio upgrade integration test | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
needs: [wait-for-image-build] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/upgrade-integration-test | |
with: | |
operator-image-name: "europe-docker.pkg.dev/kyma-project/prod/istio-manager:${{github.sha}}" | |
target_branch: ${{github.ref_name}} | |
slack_failed_notification: | |
name: Slack Notification | |
runs-on: ubuntu-latest | |
if: ${{ failure() }} | |
needs: [istio-upgrade-integration-test] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Notify | |
uses: ./.github/actions/slack-notification-failed-workflow | |
with: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |