-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 770 Bytes
/
Makefile
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
NETWORK_NAME := wallet-net
.PHONY: create_network
up-all:
@echo "Checking if network $(NETWORK_NAME) exists..."
@if ! docker network ls | grep -q $(NETWORK_NAME); then \
echo "Creating network $(NETWORK_NAME)..."; \
docker network create $(NETWORK_NAME); \
fi
@echo "Starting containers..."
docker-compose up -d
docker-compose ps -a
down:
@echo "Stopping containers..."
docker-compose down
test-account:
@echo "Running account tests..."
cd services/account && npx jest
@sleep 1
@echo "Running account e2e tests..."
cd services/account && npm run test:e2e
test-transaction:
@echo "Running transaction tests..."
cd services/transaction && npx jest
@sleep 1
@echo "Running transaction e2e tests..."
cd services/transaction && npm run test:e2e