Skip to content

E2E tests

E2E tests #347

Workflow file for this run

name: E2E tests
on:
schedule:
# every work day at 00:00 UTC
- cron: 0 0 * * 1-5
workflow_dispatch:
inputs:
target:
description: 'Target branch to run E2E tests over'
required: true
default: 'main'
permissions:
checks: write
jobs:
run-in-k8s:
name: Run in Kubernetes latest (${{ github.event.inputs.target || 'main' }})
environment: E2E
runs-on:
- self-hosted
- operator-e2e
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
run-in-ocp:
name: Run in OpenShift latest (${{ github.event.inputs.target || 'main' }})
environment: E2E
runs-on:
- self-hosted
- operator-e2e
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
notify-slack:
name: Notify test results in Slack
environment: E2E
needs: [ "run-in-k8s", "run-in-ocp" ]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Notify failure in Slack
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
text: "*GitHub Action build result*: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"