From b7aa1fb293672b3436ebd50bedbd0d719ee6b786 Mon Sep 17 00:00:00 2001 From: Test Date: Sat, 5 Sep 2026 23:28:56 -0700 Subject: [PATCH] ci: fix golang runner - use go 1.26, remove -mod=readonly, add go mod tidy --- .gitea/workflows/ci.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index d4a4258..910fbe2 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,10 +9,9 @@ jobs: test: runs-on: golang container: - image: golang:1.25 + image: golang:1.26 env: GOPRIVATE: forgejo.riotpiao.com - GOFLAGS: -mod=readonly GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }} steps: - name: Configure git authentication @@ -20,22 +19,25 @@ jobs: git config --global url."https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" git config --global credential.helper store echo "https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com" >> ~/.git-credentials - + - name: Checkout code run: | git init git remote add origin https://forgejo.riotpiao.com/rock/poimen-workflows.git git fetch origin ${{ github.ref_name }} --depth=1 git checkout FETCH_HEAD - + - name: Download dependencies run: go mod download - + + - name: Tidy modules + run: go mod tidy + - name: Test run: go test -v ./... - + - name: Build run: go build -o /tmp/poimen-bin/ ./cmd/... - + - name: Vet run: go vet ./...