-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (47 loc) · 1.62 KB
/
Copy pathMakefile
File metadata and controls
58 lines (47 loc) · 1.62 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
54
55
56
57
.PHONY: help up down restart status logs clean build-all test test-e2e
help:
@echo "Atlas Workforce System Development CLI"
@echo ""
@echo "Usage:"
@echo " make up Start the entire microservices stack"
@echo " make down Stop the entire microservices stack"
@echo " make restart Restart all services"
@echo " make status Check service logs status"
@echo " make logs Tail logs from all services"
@echo " make build-all Force rebuild of all service Docker images"
@echo " make test Execute all unit/integration tests"
@echo " make test-e2e Execute Playwright end-to-end integration tests"
@echo " make clean Stop services and prune unused volumes/containers"
up:
docker compose up -d
down:
docker compose down
restart:
docker compose restart
status:
docker compose ps
logs:
docker compose logs -f
build-all:
docker compose build --no-cache
clean:
docker compose down -v
docker system prune -f
test:
@echo "Running all backend tests..."
@failed=0; \
cd services/api-gateway-node && npm test || failed=1; \
cd services/auth-service && npm test || failed=1; \
cd services/employee-python-service && python -m pytest -v || failed=1; \
cd services/analytics-python-service && python -m pytest -v || failed=1; \
cd services/payroll-java-service && mvn test || failed=1; \
cd services/leave-service && mvn test || failed=1; \
if [ $$failed -ne 0 ]; then \
echo ""; \
echo "FAILURE: Some backend tests failed."; \
exit 1; \
fi; \
echo "All backend tests completed."
test-e2e:
@echo "Running Playwright End-to-End test suite..."
cd frontend && npx playwright test