refactor: .devops/wyx_gitlink_cli_ci.yml

This commit is contained in:
wyxttn 2026-06-04 11:00:12 +08:00 committed by jianmu
parent f7a9492ceb
commit 2da3607083
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ workflow:
ssh_ip: '"121.41.212.97"'
ssh_port: '"22"'
ssh_user: '"root"'
ssh_private_key: ((gitlink_cli.wyx_ssh_pass))
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 检查通过'"
needs: