Merge pull request 'fix: pin go directive to 1.24.0 and add GOTOOLCHAIN=local to CI (HAN-410)' (#25) from agent/go-expert-developer/6b3715f8 into main
CI / test (push) Failing after 3h1m13s
CI / docker (push) Has been cancelled

Reviewed-on: http://gitea.hansenits.com.au/hits/ExploreDNS/pulls/25
This commit was merged in pull request #25.
This commit is contained in:
2026-06-10 10:14:16 +00:00
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -14,25 +14,25 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.24'
go-version: '1.23'
cache: true
- name: Vet
run: go vet ./...
run: GOTOOLCHAIN=local go vet ./...
- name: Test
run: go test -v -race -coverprofile=coverage.out ./...
run: GOTOOLCHAIN=local go test -v -race -coverprofile=coverage.out ./...
- name: Coverage report
run: go tool cover -func=coverage.out
run: GOTOOLCHAIN=local go tool cover -func=coverage.out
- 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=$(GOTOOLCHAIN=local 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}')
echo "Average internal package coverage: ${COVERAGE}%"
- name: Build
run: go build -v ./...
run: GOTOOLCHAIN=local go build -v ./...
docker:
runs-on: ubuntu-latest
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/hits/ExploreDNS
go 1.25.6
go 1.24.0
require (
github.com/miekg/dns v1.1.72