-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
47 lines (38 loc) · 973 Bytes
/
makefile
File metadata and controls
47 lines (38 loc) · 973 Bytes
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
.PHONY: infra/up
infra/up:
docker compose up -d
HOST=localhost make migration/up
.PHONY: infra/down
infra/down:
docker compose down -v
.PHONY: dev
dev:
make infra/up
docker compose exec -T api npm ci
docker compose exec -T api npm run build
docker compose exec -d api npm start
.PHONY: ci
ci:
npm run lint:check
npm run build:check
npm test
.PHONY: test/mutation
test/mutation:
make infra/up
docker compose exec -T api npm ci
docker compose exec -T api npm run stryker
make clean/docker
.PHONY: test/load
test/load:
make start
docker run --rm -i grafana/k6 run - <test/loading/k6.js
.PHONY: clean/node
clean/node:
rm -rf node_modules
rm package-lock.json
.PHONY: clean/test
clean/test:
sudo rm -rf coverage build
.PHONY: migration/up
migration/up:
docker run -t --network=host -v "$(shell pwd)/db:/db" ghcr.io/amacneil/dbmate:1.16 --url postgres://root:db_password@$(HOST):5432/auth?sslmode=disable --wait --wait-timeout 60s --no-dump-schema up