From ffd56e833c17881dc1e19bde9ac426a81f351682 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Wed, 30 Oct 2024 23:06:35 +0800 Subject: [PATCH] build with golang container --- .gitea/workflows/go.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml index c05dc11..1fd846f 100644 --- a/.gitea/workflows/go.yaml +++ b/.gitea/workflows/go.yaml @@ -13,6 +13,13 @@ jobs: with: go-version: '1.21.x' - name: Build + container: + image: golang:latest + env: + GO111MODULE: on + GOPROXY: https://goproxy.cn,direct + ports: + - 8080 run: go build -v - name: Test with the Go CLI - run: go test + run: go test \ No newline at end of file