forked from esolveeg/new_forkee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (31 loc) · 808 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
36
37
38
39
40
41
42
LANG=en_US.UTF-8
SHELL=/bin/bash
.SHELLFLAGS=--norc --noprofile -e -u -o pipefail -c
# Include the main .env file
include config/state.env
# Construct the variable name based on STATE
CURRENT_STATE_FILE = config/$(STATE).env
# Include the appropriate .env file (e.g., dev.env or prod.env)
include $(CURRENT_STATE_FILE)
# Include the additional .env file
include config/shared.env
mign :
supabase migration new $(name)
testdb:
go test ./db/... -v
testapi:
go test ./api/... -v --race
rdb:
supabase db reset
run:
go run main.go
buf:
cd proto && buf generate
sqlc:
rm -rf db/*.sql.go && sqlc generate
gen:
buf generate && sqlc generate
mock:
mockgen -package mockdb -destination db/mock/store.go github.com/darwishdev/devkit-api/db Store
test:
make mock && go test ./... -v --cover