Files
test/.gitea/workflows/go-ci.yaml
T
admin ae72868496
Pure Run Build / build (push) Successful in 24s
test
2026-07-23 16:50:37 +08:00

26 lines
544 B
YAML

name: Pure Run Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: git.vipjhzf.cn/github/ci-base:latest
steps:
- name: 克隆当前仓库
run: |
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: 编译 Go 项目
run: |
go mod tidy
go build -o myapp .
- name: 运行测试
run: |
go test ./...
- name: 打印完成
run: echo "构建完成 ✅"