仓库自包含化: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
+22
View File
@@ -0,0 +1,22 @@
name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
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: 交叉编译(嵌入当前 dist,占位亦可)
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o /tmp/oci-portal-server ./cmd/server