-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (37 loc) · 918 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
43
MOCKERY_DOCKER_IMAGE = vektra/mockery:v2.12.2
GOLANGCI_LINT_VERSION = v1.45.2
test:
go test -race -v --cover ./...
fix-lint-docker:
docker run --rm \
-v $(PWD):/core \
-w /core \
golangci/golangci-lint:$(GOLANGCI_LINT_VERSION) \
golangci-lint run --fix
docker-compose-up:
docker compose \
--project-directory ./deploy/build \
build
docker compose \
--project-directory ./deploy/build \
up
generate-go-mocks:
rm ./internal/core/mocks/*.go || true
docker run --rm \
--volume $(PWD):/project \
--workdir /project \
$(MOCKERY_DOCKER_IMAGE) \
--dir=./internal/core \
--output=./internal/core/mocks \
--all \
--case snake
generate-http-go-mocks:
rm ./internal/core/mocks/*.go || true
docker run --rm \
--volume $(PWD):/project \
--workdir /project \
$(MOCKERY_DOCKER_IMAGE) \
--dir=./internal/infra/http/ \
--output=./internal/infra/http/mocks \
--all \
--case snake