@@ -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 ./...
|
||||
Reference in New Issue
Block a user