-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
23 lines (15 loc) · 606 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
OPENAPI=https://raw.githubusercontent.com/bavix/gripmock-openapi/master/api.yaml
.PHONY: *
version=latest
build:
docker buildx build --load -t "bavix/gripmock:${version}" .
test:
go test -tags mock -race -cover ./...
lint:
go run github.com/golangci/golangci-lint/cmd/[email protected] run --color always ${args}
lint-fix:
make lint args=--fix
intgr-test: build
docker compose -f deployments/docker-compose/docker-compose.yml up
gen:
go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest -generate gorilla,types -package rest ${OPENAPI} > internal/domain/rest/api.gen.go