Skip to content

Commit

Permalink
Makefile: add a target to compile tests
Browse files Browse the repository at this point in the history
Compiling all tests without running them is a very useful thing to do
when you want quick feedback for mechanistic refactors.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Jun 26, 2024
1 parent d4a29c6 commit 8c10bc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ifeq ("/","${HOME}")
HOME=/tmp
endif

all: build e2e
all: build e2e tests

pre-commit: all verify test

Expand Down Expand Up @@ -67,6 +67,10 @@ $(STATICCHECK): $(TOOLS_DIR)/go.mod # Build staticcheck from tools folder.
$(GENAPIDOCS): $(TOOLS_DIR)/go.mod
cd $(TOOLS_DIR); GO111MODULE=on GOFLAGS=-mod=vendor GOWORK=off go build -tags=tools -o $(GENAPIDOCS) github.com/ahmetb/gen-crd-api-reference-docs

# Compile all tests
.PHONY: tests
tests:
$(GO) test -o /dev/null -c ./...

# Build hypershift-operator binary
.PHONY: hypershift-operator
Expand Down

0 comments on commit 8c10bc2

Please sign in to comment.