From a5047950716f2cfc4b9cb1c74df810ad0dcc2447 Mon Sep 17 00:00:00 2001 From: Damir Mukimov Date: Fri, 26 Dec 2025 13:14:20 +0100 Subject: [PATCH] Add Go module verification and build steps to CI workflow - Introduce a verification step for Go module setup to ensure proper configuration - Add a build step to populate the Go module cache before running vet commands - Maintain existing environment variable settings for consistency --- .gitea/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7a5e7a7..88fa338 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -81,6 +81,24 @@ jobs: GO111MODULE: on GOPROXY: https://proxy.golang.org,direct GOSUMDB: sum.golang.org + - name: Verify module setup + working-directory: bugulma/backend + run: | + pwd + ls -la go.mod + go list -m + go list ./pkg/config + env: + GO111MODULE: on + GOPROXY: https://proxy.golang.org,direct + GOSUMDB: sum.golang.org + - name: Build module to populate cache + working-directory: bugulma/backend + run: go build ./... + env: + GO111MODULE: on + GOPROXY: https://proxy.golang.org,direct + GOSUMDB: sum.golang.org - name: Vet working-directory: bugulma/backend run: go vet ./...