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:
@@ -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' }}
|
||||
|
||||
Reference in New Issue
Block a user