From bdb7673b1688c6d420828881674558b0de94e5be Mon Sep 17 00:00:00 2001 From: Damir Mukimov Date: Thu, 25 Dec 2025 00:14:41 +0100 Subject: [PATCH] fix: resolve Go vet module recognition issue in CI - Remove redundant GO111MODULE environment variable (default in Go 1.16+) - Add cache: true to setup-go action for better performance - Ensure go mod tidy and verify run before go vet - Simplify workflow structure to match best practices --- .gitea/workflows/ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 623656d..fb52349 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -70,28 +70,23 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.25.3' - - name: Download dependencies + cache: true + - name: Install dependencies working-directory: bugulma/backend - env: - GO111MODULE: on run: go mod download - - name: Vet + - name: Tidy and verify modules working-directory: bugulma/backend - env: - GO111MODULE: on run: | go mod tidy go mod verify - go vet ./... + - name: Vet + working-directory: bugulma/backend + run: go vet ./... - name: Test working-directory: bugulma/backend - env: - GO111MODULE: on run: go test -v -race -coverprofile=coverage.out ./... - name: Coverage working-directory: bugulma/backend - env: - GO111MODULE: on run: go tool cover -html=coverage.out -o coverage.html backend-build: