-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (49 loc) · 2.17 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.PHONY: test deep scan
install:
@yarn install
@pre-commit install
check:
@yarn audit
@yarn lint
@yarn prettier
@pre-commit run --all-files
scan:
@trufflehog --debug --only-verified git file://./ --since-commit main --branch HEAD --fail
deep: scan
@ggshield secret scan repo .
baseline:
@detect-secrets scan --exclude-files '^(yarn.lock|.yarn/|.local/|openapi/)' > .secrets.baseline
start-all-service:
# Running the database server
docker compose up --wait -d db
# Insert all dump data in before running servers
@(cd lib/workload/stateless/stacks/metadata-manager && $(MAKE) s3-load)
@(cd lib/workload/stateless/stacks/sequence-run-manager && $(MAKE) s3-load)
@(cd lib/workload/stateless/stacks/workflow-manager && $(MAKE) s3-load)
@(cd lib/workload/stateless/stacks/filemanager && $(MAKE) s3-load)
# Running the rest of the µ-service server
docker compose up --wait -d --build
stop-all-service:
docker compose down
test-stateful-iac:
@yarn run test ./test/stateful
test-stateless-iac:
@yarn run test ./test/stateless
# Run all test suites for each app/microservice/stack
# Each app root should have Makefile `test` target; that run your app test pipeline including compose stack up/down
# Note by running `make suite` target from repo root means your local dev env is okay with all app toolchains i.e.
# Python (conda or venv), Rust and Cargo, TypeScript and Node environment, Docker and Container runtimes
test-stateful-app-suite:
@(cd lib/workload/stateful/stacks/postgres-manager && $(MAKE) test)
@(cd lib/workload/stateful/stacks/token-service && $(MAKE) test)
test-stateless-app-suite:
@(cd lib/workload/stateless/stacks/sequence-run-manager && $(MAKE) test)
@(cd lib/workload/stateless/stacks/metadata-manager && $(MAKE) test)
@(cd lib/workload/stateless/stacks/filemanager && $(MAKE) test)
@(cd lib/workload/stateless/stacks/fmannotator && $(MAKE) test)
@(cd lib/workload/stateless/stacks/bclconvert-manager && $(MAKE) test)
@(cd lib/workload/stateless/stacks/workflow-manager && $(MAKE) test)
# The default outer `test` target run all test in this repo
test: test-stateful-iac test-stateless-iac test-stateful-app-suite test-stateless-app-suite
clean:
@yarn clean