From 0c47cf261f67ba66f99bae446c4256cd8b02d29d Mon Sep 17 00:00:00 2001 From: wyxfzgg <3132758001@qq.com> Date: Thu, 4 Jun 2026 15:28:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=87=AA=E5=8A=A8=E4=BF=AE=E5=A4=8D=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=EF=BC=88=E6=9C=AC=E5=9C=B0=E6=97=A0Go=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=97=A0=E6=B3=95=E6=89=8B=E5=8A=A8gofmt=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devops/ci.yml b/.devops/ci.yml index fb5ec2c9..cea4f8e4 100644 --- a/.devops/ci.yml +++ b/.devops/ci.yml @@ -31,7 +31,7 @@ workflow: ssh_user: '"root"' ssh_pass: ((gitlink_cli.wyx_ssh_pass)) ssh_cmd: >- - "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && go version && echo '>>> 1. 编译检查' && go build ./... && echo '>>> 2. 静态分析' && go vet ./... && echo '>>> 3. 单元测试' && go test -race ./... && echo '>>> 4. 格式化检查' && output=$(gofmt -s -l .) && if [ -n \"$output\" ]; then echo '格式化检查失败:' && echo \"$output\" && exit 1; fi && echo '✅ 所有 CI 检查通过'" + "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && go version && echo '>>> 1. 编译检查' && go build ./... && echo '>>> 2. 静态分析' && go vet ./... && echo '>>> 3. 单元测试' && go test -race ./... && echo '>>> 4. 格式化修复' && gofmt -s -w . && echo '✅ 所有 CI 检查通过'" needs: - git_clone_0 - ref: end