ci: 限制 Go 门禁并发峰值
ci / verify (pull_request) Successful in 14m35s

将 GOFLAGS=-p=1 与 GOMAXPROCS=1 收窄到 Go 验证步骤,降低 2 GiB rootless DinD runner 冷编译时的峰值资源占用。\n\n同时增加流水线结构契约测试,确保主分支与发布工作流都保留相同限制且不会扩散到 Trivy 等其他工具。
This commit is contained in:
2026-07-17 20:02:58 +08:00
parent 82a494051d
commit f8f8e9a7ca
3 changed files with 43 additions and 0 deletions
+3
View File
@@ -81,6 +81,9 @@ jobs:
}
- name: Verify Go code
working-directory: apps/api
env:
GOFLAGS: "-p=1"
GOMAXPROCS: "1"
run: |
go vet ./...
go test ./...
+3
View File
@@ -66,6 +66,9 @@ jobs:
}
- name: Verify Go code
working-directory: apps/api
env:
GOFLAGS: "-p=1"
GOMAXPROCS: "1"
run: |
go vet ./...
go test ./...