diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a5ce023..07edd46 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -18,21 +18,21 @@ jobs: 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 "^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}') + COVERAGE=$(GOTOOLCHAIN=local 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 - run: go build -v ./... + run: GOTOOLCHAIN=local go build -v ./... docker: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 5b90e79..06af9cc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *.dll *.so *.dylib +bin/* # Test binary, built with `go test -c` *.test diff --git a/go.mod b/go.mod index 466eacd..d12f85c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gitea.hansenits.com.au/hits/ExploreDNS -go 1.25.6 +go 1.24.0 require ( github.com/miekg/dns v1.1.72