diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-09 14:36:55 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-11 21:21:38 -0600 |
| commit | 090d39e8adb08e49bd83e0432c7586086404a025 (patch) | |
| tree | 337a9ca09fed923b317fefe345689d3af676316c | |
| parent | 275dd00a2987b283c4d78f076b3d33a00795c9cd (diff) | |
chore: run clear target before tests
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
