ci: 添加 Drone CI 配置和简单 Go 程序- 新增 .drone.yml 文件,配置 Docker 类型的 CI管道
continuous-integration/drone Build was killed Details

- 添加 hello.go 文件,实现简单的 Go 语言 Hello World 程序
-配置 CI 环境中使用 Golang 1.20 镜像进行构建和测试
This commit is contained in:
hsc 2025-03-30 17:36:08 +08:00
commit a43bde7ce7
2 changed files with 13 additions and 0 deletions

10
.drone.yml Normal file
View File

@ -0,0 +1,10 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang:1.20
commands:
- go build
- go test

3
hello.go Normal file
View File

@ -0,0 +1,3 @@
func main() {
fmt.Println("Hello, World!")
}