Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Aug 16, 2024
1 parent 9678541 commit 50ed97b
Show file tree
Hide file tree
Showing 5 changed files with 268 additions and 264 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
all: build

GO ?= go1.22.2
GO_VERSION ?= $(shell grep '^go ' go.mod | awk '{print $$2}')

go:
-go install golang.org/dl/$(GO)@latest
$(GO) download
rm -f $$(dirname $$(which $(GO)))/go
ln -s $$(which $(GO)) $$(dirname $$(which $(GO)))/go
-go install golang.org/dl/go$(GO_VERSION)@latest
go$(GO_VERSION) download
rm -f $$(dirname $$(which go$(GO_VERSION)))/go
ln -s $$(which go$(GO_VERSION)) $$(dirname $$(which go$(GO_VERSION)))/go
go version

helm:
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash

goreleaser:
$(GO) install github.com/goreleaser/goreleaser@latest
go$(GO_VERSION) install github.com/goreleaser/goreleaser@latest

.PHONY: build
build: goreleaser
goreleaser build --single-target --snapshot --clean --skip=before

.PHONY: test
test:
$(GO) test -race -coverprofile=coverage.txt -covermode=atomic `go list ./... | grep -v /hack`
$(GO) tool cover -func=coverage.txt -o=coverage.out
go$(GO_VERSION) test -race -coverprofile=coverage.txt -covermode=atomic `go$(GO_VERSION) list ./... | grep -v /hack`
go$(GO_VERSION) tool cover -func=coverage.txt -o=coverage.out
tail -1 coverage.out | awk '{gsub("%",""); print $$3}'

HELM_PLUGIN_PATH := $(shell helm env | grep HELM_PLUGINS | cut -d= -f2)
Expand Down Expand Up @@ -64,11 +64,11 @@ install-dev-bin: build
.PHONY: helm-template-help-snapshot
helm-template-help-snapshot:
-rm hack/helm-template-help-snapshot/helm-template.snap
cd hack/helm-template-help-snapshot; $(GO) run main.go
cd hack/helm-template-help-snapshot; go$(GO_VERSION) run main.go

.PHONY: helm-template-diff
helm-template-diff:
cd hack/helm-template-diff; $(GO) run main.go
cd hack/helm-template-diff; go$(GO_VERSION) run main.go

.PHONY: helm-template-diff.update
helm-template-diff.update:
Expand Down
26 changes: 13 additions & 13 deletions coverage.out
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
github.com/jlandowner/helm-chartsnap/main.go:52: Debug 100.0%
github.com/jlandowner/helm-chartsnap/main.go:60: Namespace 75.0%
github.com/jlandowner/helm-chartsnap/main.go:68: HelmBin 75.0%
github.com/jlandowner/helm-chartsnap/main.go:76: OK 66.7%
github.com/jlandowner/helm-chartsnap/main.go:84: snapshotVersion 66.7%
github.com/jlandowner/helm-chartsnap/main.go:93: init 100.0%
github.com/jlandowner/helm-chartsnap/main.go:97: initRootCmd 85.2%
github.com/jlandowner/helm-chartsnap/main.go:197: main 0.0%
github.com/jlandowner/helm-chartsnap/main.go:204: slogHandler 100.0%
github.com/jlandowner/helm-chartsnap/main.go:215: loadSnapshotConfig 57.1%
github.com/jlandowner/helm-chartsnap/main.go:228: run 89.2%
github.com/jlandowner/helm-chartsnap/main.go:355: bannerPrintln 100.0%
github.com/jlandowner/helm-chartsnap/main.go:362: printOptions 100.0%
github.com/jlandowner/helm-chartsnap/main.go:53: Debug 100.0%
github.com/jlandowner/helm-chartsnap/main.go:61: Namespace 75.0%
github.com/jlandowner/helm-chartsnap/main.go:69: HelmBin 75.0%
github.com/jlandowner/helm-chartsnap/main.go:77: OK 66.7%
github.com/jlandowner/helm-chartsnap/main.go:85: snapshotVersion 66.7%
github.com/jlandowner/helm-chartsnap/main.go:94: init 100.0%
github.com/jlandowner/helm-chartsnap/main.go:98: initRootCmd 85.2%
github.com/jlandowner/helm-chartsnap/main.go:198: main 0.0%
github.com/jlandowner/helm-chartsnap/main.go:205: slogHandler 100.0%
github.com/jlandowner/helm-chartsnap/main.go:218: loadSnapshotConfig 57.1%
github.com/jlandowner/helm-chartsnap/main.go:231: run 89.2%
github.com/jlandowner/helm-chartsnap/main.go:358: bannerPrintln 100.0%
github.com/jlandowner/helm-chartsnap/main.go:365: printOptions 100.0%
github.com/jlandowner/helm-chartsnap/pkg/api/v1alpha1/header.go:13: ToString 100.0%
github.com/jlandowner/helm-chartsnap/pkg/api/v1alpha1/header.go:17: ParseHeader 100.0%
github.com/jlandowner/helm-chartsnap/pkg/api/v1alpha1/testspec.go:11: FromFile 100.0%
Expand Down
Loading

0 comments on commit 50ed97b

Please sign in to comment.