Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 2f4e949

Browse files
committed
Add unit tests task to Makefile
Signed-off-by: Joffrey F <[email protected]>
1 parent 9e2356a commit 2f4e949

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ release:
4141
image:
4242
@docker build -t $(IMAGE_NAME) $(IMAGE_BUILD_ARGS) . --target run
4343

44-
test: lint e2e-test
44+
test: lint unit-test e2e-test
4545

4646
lint:
4747
@echo "Linting..."
@@ -52,8 +52,12 @@ e2e-test:
5252
@echo "Running e2e tests..."
5353
@go test ./e2e/
5454

55+
unit-test:
56+
@echo "Running unit tests..."
57+
@go test $(shell go list ./... | grep -vE '/vendor/|/e2e')
58+
5559
clean:
5660
rm -Rf ./_build
5761

58-
.PHONEY: bin image test lint e2e-test clean
62+
.PHONY: bin image test lint e2e-test unit-test clean
5963
.DEFAULT: all

0 commit comments

Comments
 (0)