Skip to content

Commit 789d99c

Browse files
committed
tests: stop setting GOPATH in github actions
1 parent 683da1c commit 789d99c

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
@@ -69,10 +62,10 @@ jobs:
6962
go-version: '1.22'
7063
- name: Install latest version of Kind
7164
run: |
72-
GO111MODULE=on go get sigs.k8s.io/kind
65+
go build -o /usr/local/bin/kind sigs.k8s.io/kind
7366
- name: Create Kind cluster
7467
run: |
75-
PATH=$(go env GOPATH)/bin:$PATH kind create cluster --config .github/workflows/kind-config.yaml
68+
PATH=/usr/local/bin/:$PATH kind create cluster --config .github/workflows/kind-config.yaml
7669
- name: Run some sanity checks
7770
# kubectl is already installed on the Github Ubuntu worker
7871
run: |

0 commit comments

Comments
 (0)