Skip to content

Commit f198803

Browse files
committed
tests: stop setting GOPATH in github actions
1 parent 0a3c800 commit f198803

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/main.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: CI
66

77
env:
88
GOPROXY: https://proxy.golang.org
9-
GOPATH: ${{ github.workspace }}/go
109

1110
jobs:
1211
verify-goimports:
@@ -18,9 +17,6 @@ jobs:
1817
go-version: '1.22'
1918
stable: true
2019

21-
- run: |
22-
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
23-
2420
- uses: actions/checkout@v2
2521

2622
- name: verify goimports
@@ -42,9 +38,6 @@ jobs:
4238
go-version: '1.22'
4339
stable: true
4440

45-
- run: |
46-
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
47-
4841
- uses: actions/checkout@v2
4942

5043
- run: dev/format-gomod
@@ -68,10 +61,10 @@ jobs:
6861
go-version: '1.22'
6962
- name: Install latest version of Kind
7063
run: |
71-
GO111MODULE=on go get sigs.k8s.io/kind
64+
go build -o /usr/local/bin/kind sigs.k8s.io/kind
7265
- name: Create Kind cluster
7366
run: |
74-
PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config .github/workflows/kind-config.yaml
67+
PATH=/usr/local/bin/:$PATH kind create cluster --config .github/workflows/kind-config.yaml
7568
- name: Run some sanity checks
7669
# kubectl is already installed on the Github Ubuntu worker
7770
run: |

0 commit comments

Comments
 (0)