From befcc7acf9cdd498684b021c181e17aae68a01f8 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Wed, 30 Oct 2024 19:38:15 +0800 Subject: [PATCH] use container golang:latest --- .gitea/workflows/go.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml index b9bcec9..4255b16 100644 --- a/.gitea/workflows/go.yaml +++ b/.gitea/workflows/go.yaml @@ -3,15 +3,18 @@ on: [push] jobs: build: + name: Build and test runs-on: ubuntu-latest - + container: + image: golang:latest + env: + GO111MODULE: on + GOPROXY: https://goproxy.cn,direct + ports: + - 8080 steps: - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '1.21.13' - name: Build run: go build -v - name: Test with the Go CLI - run: go test \ No newline at end of file + run: go test