Skip to content

Commit 37b2707

Browse files
committed
fix(testing): Update justfile and add a Makefile(for future CI)
1 parent e6b7262 commit 37b2707

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.PHONY: setup setup-dev reload logs down fmt
2+
3+
# Full setup for testing
4+
# this includes building indexer-service and tap-agent
5+
# containers and binaries
6+
setup:
7+
./setup-test-network.sh
8+
9+
# Rebuild binaries and restart services after code changes
10+
# This is useful for development as a complete container rebuild is not necessary
11+
reload:
12+
./dev-reload.sh
13+
14+
# Watch log output from services
15+
logs:
16+
cd contrib && docker-compose -f docker-compose.dev.yml logs -f
17+
18+
# Stop all services
19+
down:
20+
cd contrib && docker-compose -f docker-compose.dev.yml down
21+
22+
# Cargo commands
23+
fmt:
24+
cargo fmt
25+
26+
test-local:
27+
cd tests && ./run-test-local.sh

justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,26 @@ psql-down:
4646
migrate:
4747
sqlx migrate run --database-url postgresql://postgres:postgres@127.0.0.1:5432
4848

49+
50+
# Development workflow commands
51+
# -----------------------------
52+
53+
# Full setup for testing
54+
# using a local network
55+
setup:
56+
./setup-test-network.sh
57+
58+
# Rebuild binaries and restart services after code changes
59+
reload:
60+
./dev-reload.sh
61+
62+
# Watch log output from services
63+
logs:
64+
@cd contrib && docker-compose -f docker-compose.dev.yml logs -f
65+
66+
# Stop all services
67+
down:
68+
@cd contrib && docker-compose -f docker-compose.dev.yml down
69+
70+
test-local:
71+
cd tests && ./run-test-local.sh

0 commit comments

Comments
 (0)