-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.71 KB
/
Copy pathMakefile
File metadata and controls
53 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-include .env
export
.PHONY: help up down restart logs build test test-unit test-integration format format-check clean run
help: ## Show this help message
@echo Available commands:
@echo up - Start order-service own Postgres in Docker
@echo down - Stop it
@echo restart - Restart it
@echo logs - Tail logs from local infrastructure
@echo build - Compile the project (no tests)
@echo test-unit - Run unit tests only
@echo test-integration - Run unit + integration tests
@echo test - Alias for test-integration
@echo format - Auto-format code with Spotless
@echo format-check - Check code formatting without modifying files
@echo clean - Remove build artifacts
@echo run - Run the application locally
up: ## Start order-service's own Postgres in Docker
docker compose up -d
down: ## Stop it
docker compose down
restart: down up ## Restart it
logs: ## Tail logs from local infrastructure
docker compose logs -f
build: ## Compile the project (no tests)
mvn --batch-mode --no-transfer-progress compile
test-unit: ## Run unit tests only
mvn --batch-mode --no-transfer-progress test
test-integration: ## Run unit + integration tests
mvn --batch-mode --no-transfer-progress verify
test: test-integration ## Alias for test-integration
format: ## Auto-format code with Spotless
mvn --batch-mode --no-transfer-progress spotless:apply
format-check: ## Check code formatting without modifying files
mvn --batch-mode --no-transfer-progress spotless:check
clean: ## Remove build artifacts
mvn --batch-mode --no-transfer-progress clean
run: ## Run the application locally
mvn spring-boot:run