diff --git a/.github/workflows/golang-test.yml b/.github/workflows/golang-test.yml index 1d72d3b2ddf..cc1cfbdb9e9 100644 --- a/.github/workflows/golang-test.yml +++ b/.github/workflows/golang-test.yml @@ -18,7 +18,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Test - run: sudo go test ./... + run: sudo --preserve-env=GOROOT go test ./... test_build: strategy: