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 <noreply@paperclip.ing>
This commit is contained in:
hugh-hackman[bot]
2026-03-16 10:58:42 +00:00
parent a383d32176
commit 76d2bd3d41
+13
View File
@@ -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' }}