diff --git a/Taskfile.yml b/Taskfile.yml index 5b3d567..0139180 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -16,6 +16,7 @@ vars: nproc fi GQLGENC_VERSION: v0.25.4 + HELM_VERSION: v3.16.2 MOCKERY_BIN: "{{.GOPATH}}/bin/mockery" MOCKERY_MAJOR_VERSION: v2 MOCKERY_VERSION: "{{.MOCKERY_MAJOR_VERSION}}.46.0" @@ -78,6 +79,15 @@ tasks: -html={{.COVERPROFILE}} \ -o coverage.html open ./coverage.html + helm-install: + silent: true + cmds: + - | + if ! helm version | grep -q "{{.HELM_VERSION}}"; then + DESIRED_VERSION={{.HELM_VERSION}} curl \ + -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 |\ + bash -s -- --version {{.HELM_VERSION}} + fi gci-install: silent: true cmds: