From 2c8989f655e5cbad213e61e79159e1d6062214a7 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Fri, 24 Feb 2023 14:59:49 +0100 Subject: [PATCH] fix: DNS issue in CI --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0731c2c26c..2a4d0b80ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: # Not utilizing makefile target here to make use of pipefail bash feature. run: | set -euo pipefail - go test -p 1 -json ./... -covermode=count -coverprofile=coverage.out 2>&1 | tee test_results.json + GODEBUG=netdns=cgo go test -p 1 -json ./... -covermode=count -coverprofile=coverage.out 2>&1 | tee test_results.json - name: Sanitize test results # We're utilizing `tee` above which can capture non-json stdout output so we need to remove non-json lines before additional parsing and submitting it to the external github action. if: ${{ always() && env.TARGET_GOLANG_VERSION == matrix.go }}