From 671a23e6e1fb771af01645fe2f7add79d1166557 Mon Sep 17 00:00:00 2001 From: Gary Hansen Date: Tue, 9 Jun 2026 15:17:29 +1000 Subject: [PATCH] fix: update CI to use Go version from go.mod and fix module path in coverage check - Replace hardcoded go-version '1.24' with go-version-file: 'go.mod' so CI always uses the toolchain version that matches the module's requirements (go.mod currently declares go 1.25.6) - Fix 'Check internal package coverage' step: update grep pattern from old module path 'github.com/hits/ExploreDNS/internal' to the renamed path 'gitea.hansenits.com.au/hits/ExploreDNS/internal' Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: multica-agent --- .gitea/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 91cd1ae..a5ce023 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '1.24' + go-version-file: 'go.mod' cache: true - name: Vet @@ -28,7 +28,7 @@ jobs: - name: Check internal package coverage run: | - COVERAGE=$(go tool cover -func=coverage.out | grep "^github.com/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}') + COVERAGE=$(go tool cover -func=coverage.out | grep "^gitea.hansenits.com.au/hits/ExploreDNS/internal" | awk '{print $3}' | sed 's/%//' | awk '{sum+=$1; count++} END {if(count>0) print sum/count; else print 0}') echo "Average internal package coverage: ${COVERAGE}%" - name: Build