diff options
| -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 |
