From ef73bf97fc1736d720342ac970d61ff1055fe011 Mon Sep 17 00:00:00 2001 From: Hugh Hackman Date: Mon, 16 Mar 2026 01:02:54 +0000 Subject: [PATCH] ci: add plugin build+deploy steps to e2e workflow Add build and deploy-plugin-to-headlamp.sh steps before Playwright tests so E2E always tests the current commit's plugin code instead of whatever was previously deployed to the Headlamp instance. Co-Authored-By: Paperclip --- .github/workflows/e2e.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 9685c69..63c63d6 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -65,6 +65,16 @@ jobs: echo "::warning::Version mismatch — repo has $EXPECTED but Headlamp runs $DEPLOYED_VERSION. Tests may fail due to stale plugin." fi + - 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: ${{ secrets.HEADLAMP_NS || 'kube-system' }} + HEADLAMP_PLUGIN_DIR: ${{ secrets.HEADLAMP_PLUGIN_DIR || '/headlamp/static-plugins/polaris' }} + run: ./scripts/deploy-plugin-to-headlamp.sh + - name: Install Playwright browsers run: npx playwright install --with-deps chromium