mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-05 06:36:11 +02:00
Merge pull request #3829 from mloiseleur/fix/build-workflow
chore(ci): fix storage use, go version and lint job
This commit is contained in:
commit
952dc5d2e5
15
.github/workflows/staging-image-tester.yml
vendored
15
.github/workflows/staging-image-tester.yml
vendored
@ -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
|
||||
|
||||
6
Makefile
6
Makefile
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user