From 090d39e8adb08e49bd83e0432c7586086404a025 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 9 May 2025 14:36:55 -0600 Subject: chore: run clear target before tests --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1d5ba61..e13a0e8 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ sparkled: clean: @rm -f sparkled + @go clean -testcache + @docker rmi -f $(IMAGE_TAG) setup: @mise install @@ -19,13 +21,12 @@ setup: build: sparkled test-unit: - @go clean -testcache @go test -shuffle=on ./... test-integration: build-image @IMAGE_TAG=$(IMAGE_TAG) go test -tags=integration ./test/integration/... -test: test-unit test-integration +test: clean test-unit test-integration build-image: @docker build --tag $(IMAGE_TAG) . @@ -36,7 +37,7 @@ build-builder-image: run: clean build @godotenv -f .env.local,.env ./sparkled -run-image: build-image +run-image: clean build-image @docker run --rm --network host --env-file .env.local -p 10000:10000 -p 9901:9901 -p 8080:8080 -it $(IMAGE_TAG) sh-image: build-builder-image -- cgit v1.2.3