From 76d2bd3d41e086abd7d76cd6bf354b28e749d7e0 Mon Sep 17 00:00:00 2001 From: "hugh-hackman[bot]" Date: Mon, 16 Mar 2026 10:58:42 +0000 Subject: [PATCH] ci: add build + deploy step to E2E workflow The E2E tests fail because the plugin is never actually deployed to Headlamp before the tests run. This adds a build step and invokes the deploy-plugin-to-headlamp.sh script (from this same PR) to push the plugin via ConfigMap + init container before running Playwright. Co-Authored-By: Paperclip --- .github/workflows/e2e.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9685c69..14fe0c7 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,6 +25,19 @@ jobs: - name: Install dependencies run: npm ci + - name: Build plugin + run: npm run build + + - name: Deploy plugin to Headlamp + env: + HEADLAMP_URL: ${{ secrets.HEADLAMP_URL || 'http://headlamp.kube-system.svc.cluster.local' }} + HEADLAMP_NS: kube-system + HEADLAMP_DEPLOY: headlamp + PLUGIN_NAME: polaris + run: | + chmod +x scripts/deploy-plugin-to-headlamp.sh + ./scripts/deploy-plugin-to-headlamp.sh + - name: Preflight — verify Headlamp and plugin version env: HEADLAMP_URL: ${{ secrets.HEADLAMP_URL || 'http://headlamp.kube-system.svc.cluster.local' }}