Skip to content

Operator E2E Test

Operator E2E Test #10

Workflow file for this run

name: Operator E2E Test
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
inputs:
mirrord_commit:
description: 'Mirrord commit to use for E2E tests'
required: true
type: string
mirrord_branch:
description: 'Mirrord branch to use for E2E tests'
required: true
type: string
jobs:
trigger-operator-e2e:
runs-on: ubuntu-latest
# Only run if:
# 1. PR is opened and not draft
# 2. PR has new code and not draft
# 3. Manually triggered
if: |
github.event_name == 'workflow_dispatch' ||
(github.event.action == 'opened' && github.event.pull_request.draft == false) ||
(github.event.action == 'synchronize' && github.event.pull_request.draft == false)
steps:
- name: Trigger operator E2E workflow
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: metalbear-co/operator
event-type: operator-e2e-test-from-mirrord
client-payload: |
{
"mirrord_commit": "${{ github.event_name == 'workflow_dispatch' && inputs.mirrord_commit || github.sha }}",
"mirrord_branch": "${{ github.event_name == 'workflow_dispatch' && inputs.mirrord_branch || github.event.pull_request.head.ref }}"
}