From 493f3ceca746f74b8abb5dcb7ca6748398db7895 Mon Sep 17 00:00:00 2001 From: justinsb Date: Tue, 2 Jul 2024 07:27:45 -0400 Subject: [PATCH] tests: stop setting GOPATH in github actions --- .github/workflows/main.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98afb08b..eeb02691 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,6 @@ name: CI env: GOPROXY: https://proxy.golang.org - GOPATH: ${{ github.workspace }}/go jobs: verify-goimports: @@ -18,9 +17,6 @@ jobs: go-version: '1.22' stable: true - - run: | - echo "GOPATH=${HOME}/go" >> $GITHUB_ENV - - uses: actions/checkout@v2 - name: verify goimports @@ -42,9 +38,6 @@ jobs: go-version: '1.22' stable: true - - run: | - echo "GOPATH=${HOME}/go" >> $GITHUB_ENV - - uses: actions/checkout@v2 - run: dev/format-gomod @@ -68,10 +61,10 @@ jobs: go-version: '1.22' - name: Install latest version of Kind run: | - GO111MODULE=on go get sigs.k8s.io/kind + go build -o /usr/local/bin/kind sigs.k8s.io/kind - name: Create Kind cluster run: | - PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config .github/workflows/kind-config.yaml + PATH=/usr/local/bin/:$PATH kind create cluster --config .github/workflows/kind-config.yaml - name: Run some sanity checks # kubectl is already installed on the Github Ubuntu worker run: |