Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions openshift/tests-extension/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ verify:
errors=$$((errors+1)); \
failed_steps="$$failed_steps lint"; \
fi; \
if ! $(MAKE) test-unit; then \
echo "ERROR: 'make test-unit' failed"; \
errors=$$((errors+1)); \
failed_steps="$$failed_steps test-unit"; \
fi; \
if [ $$errors -gt 0 ]; then \
echo "FAILED: The following verification check(s) failed:$$failed_steps"; \
exit 1; \
Expand Down Expand Up @@ -116,6 +121,10 @@ fmt-without-fix: #HELP Run go fmt against code.
vet: #HELP Run go vet against code.
go vet ./...

.PHONY: test-unit
test-unit: #HELP Run the unit tests for this module. They must not require a cluster.
go test -count=1 -race ./pkg/...

.PHONY: lint
lint: $(GOLANGCI_LINT) #HELP Run golangci linter.
$(GOLANGCI_LINT) run
Expand Down
Loading