Skip to content

Commit

Permalink
tests: stop setting GOPATH in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jul 2, 2024
1 parent 8ba852b commit 493f3ce
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name: CI

env:
GOPROXY: https://proxy.golang.org
GOPATH: ${{ github.workspace }}/go

jobs:
verify-goimports:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 493f3ce

Please sign in to comment.