build(ui): build the dashboard in CI and the Taskfile instead of committing ui/dist
Quality / check (push) Canceled after 1m27s
deploy / gate (push) Successful in 4m28s
deploy / archied-image (push) Successful in 3m29s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-01 22:07:36 +11:00
1 parent 243832fee6
commit d6ca6a72a5
76 files changed
+43 -528

No files matched your search

+7 -12
View File
@@ -100,18 +100,12 @@ tasks:
- pnpm install --frozen-lockfile
ui:
desc: Build the dashboard into ui/dist (committed; the Go build embeds it)
desc: Build the dashboard into ui/dist, which the Go build embeds
dir: ui
deps: [ui:deps]
cmds:
- pnpm run build
ui:check:
desc: Rebuild the dashboard into a temporary directory and reject a stale ui/dist
deps: [ui:deps]
cmds:
- bash tools/uidist.sh check
test:ui:
desc: Test and type-check the dashboard
dir: ui
@@ -229,6 +223,7 @@ tasks:
build:
desc: Build archie services and agent binaries
deps: [ui]
vars:
GATEWAY_VERSION: '{{.GATEWAY_VERSION | default .VERSION}}'
RUNTIME_VERSION: '{{.RUNTIME_VERSION | default .VERSION}}'
@@ -278,13 +273,14 @@ tasks:
desc: Run the full quality gate
# Finish mutations before starting parallel checks.
cmds:
# Node packages land under ui/, which `go test ./...` walks: installing
# them while the parallel checks scan the tree makes a lockfile update
# delete Go sources mid-walk. Install first, then fan out. Every Go step
# embeds ui/dist, so the dashboard is built before any of them.
- task: ui
- task: fmt
- task: proto:check
- task: db:check
# Node packages land under ui/, which `go test ./...` walks: installing
# them while the parallel checks scan the tree makes a lockfile update
# delete Go sources mid-walk. Install first, then fan out.
- task: ui:deps
- task: check:readonly
check:readonly:
@@ -297,7 +293,6 @@ tasks:
- task: build
- task: test
- task: test:ui
- task: ui:check
release:
desc: "Turn [Unreleased] into a release, then commit and tag it (RELEASE=major|minor|patch|1.2.3)"