From d9b49ac3a4cb2f46cc1a8f069f2ba16ae6e14762 Mon Sep 17 00:00:00 2001 From: omer-vishlitzky Date: Wed, 24 Jun 2026 15:26:22 +0300 Subject: [PATCH] OSAC-1680: Add GitHub Actions e2e job Add e2e-test.yml caller workflow that builds the PR image, pushes to GHCR, and invokes the shared e2e workflow from osac-test-infra with component image override. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/e2e-test.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/e2e-test.yml diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml new file mode 100644 index 00000000..8e2d91b5 --- /dev/null +++ b/.github/workflows/e2e-test.yml @@ -0,0 +1,38 @@ +--- +name: E2E Tests + +on: + pull_request: + branches: [main] + workflow_dispatch: {} + +jobs: + build-pr-image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + outputs: + image: ${{ steps.meta.outputs.image }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set image metadata + id: meta + run: | + IMAGE="ghcr.io/osac-project/osac-operator:pr-${{ github.event.pull_request.number || github.run_id }}" + echo "image=${IMAGE}" >> "$GITHUB_OUTPUT" + + - name: Build and push PR image + run: | + echo "${{ secrets.GITHUB_TOKEN }}" | podman login ghcr.io -u "${{ github.actor }}" --password-stdin + podman build -t "${{ steps.meta.outputs.image }}" -f Containerfile . + podman push "${{ steps.meta.outputs.image }}" + + e2e: + needs: build-pr-image + uses: osac-project/osac-test-infra/.github/workflows/e2e.yml@main + with: + component-image: ${{ needs.build-pr-image.outputs.image }} + component-image-name: ghcr.io/osac-project/osac-operator