From 9a795f4c2c534665d1ac1f50fcf663a5def6a919 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 31 Oct 2024 08:55:31 +0800 Subject: [PATCH] container up --- .gitea/workflows/go.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/go.yaml b/.gitea/workflows/go.yaml index 7b952bf..1e3b7ad 100644 --- a/.gitea/workflows/go.yaml +++ b/.gitea/workflows/go.yaml @@ -6,17 +6,18 @@ jobs: 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: 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 \ No newline at end of file