From 14fe7fd631bae4addefb11a61fc3ba0497e6c028 Mon Sep 17 00:00:00 2001 From: xarmian Date: Fri, 27 Mar 2026 03:35:55 +0000 Subject: [PATCH] Fix CI: create web build placeholder for Go embed in test and vet jobs The go:embed directive requires web/build/* to exist. Go test and vet jobs run without building the web UI, so create a minimal placeholder directory to satisfy the embed pattern. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f22ccbf7..6987f766 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,9 @@ jobs: with: go-version: "1.25" + - name: Create web build placeholder for embed + run: mkdir -p web/build && echo "placeholder" > web/build/.gitkeep + - name: Run tests run: go test ./... @@ -36,6 +39,9 @@ jobs: with: go-version: "1.25" + - name: Create web build placeholder for embed + run: mkdir -p web/build && echo "placeholder" > web/build/.gitkeep + - name: Run go vet run: go vet ./...