-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 1.03 KB
/
Makefile
File metadata and controls
42 lines (31 loc) · 1.03 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
.PHONY: build-test-image start-e2e-services stop-e2e-services e2e-test-db e2e-test-openfga e2e-test-all
# Build test Docker image
build-test-image:
npx nx container purrfect-sitter --configuration=test
# Start E2E test environment
start-e2e-services:
docker compose -f docker-compose-ci.yml up -d
# Stop E2E test environment
stop-e2e-services:
docker compose -f docker-compose-ci.yml down
# Run E2E tests with DB auth strategy
e2e-test-db:
AUTH_STRATEGY=db npx nx e2e purrfect-sitter-e2e
# Run E2E tests with OpenFGA auth strategy
e2e-test-openfga:
AUTH_STRATEGY=openfga npx nx e2e purrfect-sitter-e2e
# Run all E2E tests
e2e-test-all: e2e-test-openfga e2e-test-db
# Start development environment
start-dev:
docker compose --profile dev up -d
# Stop development environment
stop-dev:
docker compose --profile dev down
# Reset test environment
reset-test: stop-e2e-services start-e2e-services
# Full E2E test workflow
e2e-full: build-test-image reset-test e2e-test-all
# Execute DB migrations
migrate:
npx nx run purrfect-sitter:migrate