diff --git a/Makefile b/Makefile index 0b4e015cd..1ef7d87ab 100644 --- a/Makefile +++ b/Makefile @@ -29,12 +29,11 @@ lint: test: $(GOBIN)/tparse $(GOTEST) -timeout 2m -json ./... \ | tee output.json | $(GOBIN)/tparse -follow -all - [ -z "${GITHUB_STEP_SUMMARY}" ] \ - || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY} - + [ -z "$${GITHUB_STEP_SUMMARY}" ] \ + || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >"$${GITHUB_STEP_SUMMARY:-/dev/null}" .PHONY: test_functional test_functional: $(GOBIN)/tparse $(GOTEST) -timeout 12m -tags=functional -json ./... \ | tee output.json | $(GOBIN)/tparse -follow -all - [ -z "${GITHUB_STEP_SUMMARY}" ] \ - || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >${GITHUB_STEP_SUMMARY} + [ -z "$${GITHUB_STEP_SUMMARY:-}" ] \ + || NO_COLOR=1 $(GOBIN)/tparse -format markdown -file output.json -all >"$${GITHUB_STEP_SUMMARY:-/dev/null}"