Merge pull request #3829 from mloiseleur/fix/build-workflow

chore(ci): fix storage use, go version and lint job
This commit is contained in:
Kubernetes Prow Robot 2023-08-04 01:40:21 -07:00 committed by GitHub
commit 952dc5d2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
@ -33,5 +33,14 @@ jobs:
run: |
go get -v -t -d ./...
- name: Test
run: make build.image/multiarch
- name: Test build on amd64
run: make build.image-amd64
- name: Clean
run: make clean
- name: Test build on arm64
run: make build.image-arm64
- name: Clean
run: make clean

View File

@ -46,8 +46,11 @@ endif
.PHONY: go-lint
golangci-lint:
@command -v golangci-lint > /dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3
# Run the golangci-lint tool
go-lint:
go-lint: golangci-lint
golangci-lint run --timeout=15m ./...
.PHONY: licensecheck
@ -167,6 +170,7 @@ build.mini:
clean:
@rm -rf build
@go clean -cache
# Builds and push container images to the staging bucket.
.PHONY: release.staging