Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(ci): stub the embedded frontend dist so patrol lifecycle proofs compile

rcourtman72c132d4f027
diff --git a/.github/workflows/patrol-qualification-regression.yml b/.github/workflows/patrol-qualification-regression.yml
index 6fb8c0207a..ab250b5d2b 100644
--- a/.github/workflows/patrol-qualification-regression.yml
+++ b/.github/workflows/patrol-qualification-regression.yml
@@ -55,6 +55,15 @@ jobs:
- name: Run deterministic qualification regression
run: go test ./internal/ai/qualification ./cmd/patrol-qualify -count=1
+ - name: Stub embedded frontend dist so internal/api compiles
+ # internal/api/frontend_embed.go has `//go:embed all:frontend-modern/dist`,
+ # which fails the build when the directory is absent. These tests exercise
+ # Go logic only, so an empty index.html satisfies the embed without paying
+ # for a frontend build.
+ run: |
+ mkdir -p internal/api/frontend-modern/dist
+ printf '<!doctype html><html><head><title>Pulse CI stub</title></head><body></body></html>\n' > internal/api/frontend-modern/dist/index.html
+
- name: Prove Patrol lifecycle and permission boundaries
run: >-
go test ./internal/ai ./internal/ai/tools ./internal/agentcapabilities ./internal/api