ci: 新增 build/vet/test 质量门
CI / build-and-test (push) Canceled after 0s

此前仓库唯一的 workflow 只在打 tag 时构建 Docker 镜像,不做任何编译或测试校验,加上测试源码不入库,导致 go test 全绿从来没有被自动化校验过。

新增 ci.yml:push / PR 到 develop、main 时跑 go build ./... / go vet ./... / go test ./... -count=1,再单跑一遍集成测试并输出明细。版本以 go-version-file 跟随 go.mod;-count=1 禁用测试缓存。
This commit is contained in:
sun
2026-10-03 16:18:54 +08:00
parent 24f8accf71
commit ad342ec8f1
3 changed files with 84 additions and 18 deletions
+9 -1
View File
@@ -1,4 +1,4 @@
# Go build cache
# Go build cache
.gocache/
*.exe
*.test
@@ -36,6 +36,14 @@ bin/
# Local dev scripts (per-user; not part of repo)
start-local.ps1
# Windows / PowerShell 脚本:一律不入库、不外流
# ui-handoff/serve.ps1 与 start-local.ps1 是本地起服便利脚本(含本机路径与端口),
# 不属于交付物。这两个文件在文件系统层面删除被拒,因此只能在 git 层屏蔽。
*.ps1
# UI handoff bundle(改造前的单文件副本 + 离线 mock 预览;仅本地对照,不部署)
ui-handoff/
# Runtime database artifacts (created by M1 installer flow)
tts.db
tts.db-*