precheck for make test (#2116)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-03-27 11:21:36 +08:00 committed by GitHub
parent cabaf15a1a
commit a8784a17ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ build-test-tools:
.PHONY: build-test-tools .PHONY: build-test-tools
test: test:
@which helm &> /dev/null || (echo "helm binary not found. Please see: https://helm.sh/docs/intro/install/" && exit 1)
go build -o helmfile . go build -o helmfile .
go test -v ${PKGS} -cover -race -p=1 go test -v ${PKGS} -cover -race -p=1
.PHONY: test .PHONY: test