-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (37 loc) · 1.89 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
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/cache/cache.repository.go -destination ./mocks/cache/cache.repository.go
mockgen -source ./internal/pin/pin.service.go -destination ./mocks/pin/pin.service.go
mockgen -source ./internal/pin/pin.repository.go -destination ./mocks/pin/pin.repository.go
mockgen -source ./internal/pin/pin.utils.go -destination ./mocks/pin/pin.utils.go
mockgen -source ./internal/stamp/stamp.repository.go -destination ./mocks/stamp/stamp.repository.go
mockgen -source ./internal/stamp/stamp.service.go -destination ./mocks/stamp/stamp.service.go
mockgen -source ./internal/selection/selection.repository.go -destination ./mocks/selection/selection.repository.go
mockgen -source ./internal/selection/selection.service.go -destination ./mocks/selection/selection.service.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