Repository navigation
fix(ci): repair OLM on the shared GKE cluster and keep it installed #2818
Workflow file for this run
This file contains hidden or 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 Cluster-free | |
| # Runs the cluster-free local E2E harness (RHIDP-13501 / RHIDP-15075): boots the | |
| # backend and the NFS app (packages/app) dev server in-process and drives Playwright | |
| # against them, with dynamic plugins installed from the public OCI registry (quay.io) via | |
| # the install-dynamic-plugins CLI (skopeo). No OpenShift/Kubernetes cluster or | |
| # image. See docs/e2e-tests/local-e2e-harness.md. | |
| on: | |
| pull_request: | |
| paths: | |
| - "e2e-tests/**" | |
| - "app-config*.yaml" | |
| # the harness relies on the app dev-server proxy defined here | |
| - "packages/app/package.json" | |
| - ".github/workflows/e2e-cluster-free.yaml" | |
| - ".github/actions/setup-cluster-free-harness/**" | |
| - ".github/actions/resolve-catalog-index-image/**" | |
| - "e2e-tests/local-harness/resolve-catalog-index-image.sh" | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release-[0-9]+.[0-9]+' | |
| paths: | |
| - "e2e-tests/**" | |
| - "app-config*.yaml" | |
| # the harness relies on the app dev-server proxy defined here | |
| - "packages/app/package.json" | |
| - ".github/workflows/e2e-cluster-free.yaml" | |
| - ".github/actions/setup-cluster-free-harness/**" | |
| - ".github/actions/resolve-catalog-index-image/**" | |
| - "e2e-tests/local-harness/resolve-catalog-index-image.sh" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| # The job runs inside a container, where steps default to `sh -e {0}` rather | |
| # than the runner host's bash; keep bash so `run:` steps behave the same. | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| e2e: | |
| name: e2e | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| # Playwright image: browsers + OS deps preinstalled, so no browser-install step | |
| # (which hung on plain ubuntu runners). Keep the tag in sync with the | |
| # @playwright/test version in e2e-tests/package.json (currently 1.62.1) — a | |
| # mismatch fails with "Executable doesn't exist at /ms-playwright/...". | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up the cluster-free harness | |
| uses: ./.github/actions/setup-cluster-free-harness | |
| - name: Resolve the catalog index image | |
| id: index | |
| uses: ./.github/actions/resolve-catalog-index-image | |
| with: | |
| branch: ${{ github.event.pull_request.base.ref || github.ref_name }} | |
| - name: Populate dynamic-plugins-root (OCI) | |
| # populate.sh resolves ref:// against the catalog index DPDY, then | |
| # installs the harness plugin set from quay.io. | |
| env: | |
| CATALOG_INDEX_IMAGE: ${{ steps.index.outputs.image }} | |
| run: ./e2e-tests/local-harness/populate.sh | |
| - name: Run cluster-free E2E (NFS app) | |
| working-directory: ./e2e-tests | |
| run: yarn e2e:local | |
| - name: Upload Playwright report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: playwright-report-local | |
| path: e2e-tests/playwright-report-local | |
| retention-days: 7 | |
| - name: Run cluster-free E2E (defaultLanguage fr) | |
| if: ${{ !cancelled() }} | |
| working-directory: ./e2e-tests | |
| run: yarn e2e:local:default-language | |
| - name: Upload Playwright report (defaultLanguage fr) | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: playwright-report-local-default-language | |
| path: e2e-tests/playwright-report-local-default-language | |
| retention-days: 7 |