diff --git a/.github/workflows/golang-test.yml b/.github/workflows/golang-test.yml index cc1cfbdb9..0e1ee94f8 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 --preserve-env=GOROOT go test ./... + run: GOBIN=$(which go) && sudo --preserve-env=GOROOT $GOBIN test ./... test_build: strategy: