mirror of https://github.com/helm/helm.git
Merge pull request #31116 from banjoh/em/check-go-modules
This commit is contained in:
commit
ceb746804a
|
@ -28,6 +28,8 @@ jobs:
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- name: Test source headers are present
|
- name: Test source headers are present
|
||||||
run: make test-source-headers
|
run: make test-source-headers
|
||||||
|
- name: Check if go modules need to be tidied
|
||||||
|
run: go mod tidy -diff
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: make test-coverage
|
run: make test-coverage
|
||||||
- name: Test build
|
- name: Test build
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -75,7 +75,7 @@ all: build
|
||||||
# build
|
# build
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(BINDIR)/$(BINNAME)
|
build: $(BINDIR)/$(BINNAME) tidy
|
||||||
|
|
||||||
$(BINDIR)/$(BINNAME): $(SRC)
|
$(BINDIR)/$(BINNAME): $(SRC)
|
||||||
CGO_ENABLED=$(CGO_ENABLED) go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm
|
CGO_ENABLED=$(CGO_ENABLED) go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/helm
|
||||||
|
@ -243,3 +243,7 @@ info:
|
||||||
@echo "Git Tag: ${GIT_TAG}"
|
@echo "Git Tag: ${GIT_TAG}"
|
||||||
@echo "Git Commit: ${GIT_COMMIT}"
|
@echo "Git Commit: ${GIT_COMMIT}"
|
||||||
@echo "Git Tree State: ${GIT_DIRTY}"
|
@echo "Git Tree State: ${GIT_DIRTY}"
|
||||||
|
|
||||||
|
.PHONY: tidy
|
||||||
|
tidy:
|
||||||
|
go mod tidy
|
||||||
|
|
Loading…
Reference in New Issue