仓库自包含化:Docker/CI/文档/规范入库,路由分组拆分
CI / test (push) Successful in 15s

This commit is contained in:
Wang Defa
2026-07-09 19:18:04 +08:00
parent b9a3e97e84
commit 3e0389c1e9
83 changed files with 20241 additions and 248 deletions
+23
View File
@@ -0,0 +1,23 @@
name: CI
# 仅分支推送触发:tag 推送交给 release.yml;solo 开发不走 PR,去掉 pull_request 避免同一提交双跑
on:
push:
branches: ["**"]
jobs:
test:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.5"
- name: gofmt 检查
run: test -z "$(gofmt -l .)"
- name: go vet
run: go vet ./...
- name: 测试
run: go test ./...
- name: 编译检查(runner 即 linux/amd64,验证 dist 嵌入与链接)
run: go build ./...