-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (38 loc) · 1.62 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
.PHONY: setup pull-latest-mac pull-latest-windows docker docker-qa server watch mock-gen test proto model
setup:
go mod download
go install github.com/air-verse/air
go install github.com/golang/mock/[email protected]
go get github.com/isd-sgcu/rpkm67-go-proto@latest
go get github.com/isd-sgcu/rpkm67-model@latest
pull-latest-mac:
docker pull --platform linux/x86_64 ghcr.io/isd-sgcu/rpkm67-gateway:latest
docker pull --platform linux/x86_64 ghcr.io/isd-sgcu/rpkm67-auth:latest
docker pull --platform linux/x86_64 ghcr.io/isd-sgcu/rpkm67-backend:latest
docker pull --platform linux/x86_64 ghcr.io/isd-sgcu/rpkm67-checkin:latest
docker pull --platform linux/x86_64 ghcr.io/isd-sgcu/rpkm67-store:latest
pull-latest-windows:
docker pull ghcr.io/isd-sgcu/rpkm67-gateway:latest
docker pull ghcr.io/isd-sgcu/rpkm67-auth:latest
docker pull ghcr.io/isd-sgcu/rpkm67-backend:latest
docker pull ghcr.io/isd-sgcu/rpkm67-checkin:latest
docker pull ghcr.io/isd-sgcu/rpkm67-store:latest
docker:
docker rm -v -f $$(docker ps -qa) || echo "No containers found. Skipping removal."
docker-compose up
server:
go run cmd/main.go
watch:
air
mock-gen:
mockgen -source ./internal/user/user.service.go -destination ./mocks/user/user.service.go
mockgen -source ./internal/user/user.repository.go -destination ./mocks/user/user.repository.go
test:
go vet ./...
go test -v -coverpkg ./internal/... -coverprofile coverage.out -covermode count ./internal/...
go tool cover -func=coverage.out
go tool cover -html=coverage.out -o coverage.html
proto:
go get github.com/isd-sgcu/rpkm67-go-proto@latest
model:
go get github.com/isd-sgcu/rpkm67-model@latest