-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.jinja
More file actions
49 lines (35 loc) · 1005 Bytes
/
Makefile.jinja
File metadata and controls
49 lines (35 loc) · 1005 Bytes
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
49
download-deps:
go mod download
install-goa:
go install goa.design/goa/v3/cmd/goa@v3.22.2
install-mockery:
go install github.com/vektra/mockery/v2@latest
generate-code-design:
goa gen {{ module_name }}/design
install-lint:
@echo "Installing golangci-lint..."
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest
install-dev-tools: install-goa install-mockery install-lint
tidy:
@go mod tidy
lint:
@echo "Running golangci-lint..."
@golangci-lint run
lint-fix:
@echo "Fixing lint issues..."
@golangci-lint run --fix
generate-mocks:
@echo "Generating mocks..."
@mockery
test:
@echo "Running tests..."
@go test -v -race -coverprofile=coverage.out ./...
run-server:
@go run main.go server
build:
@echo "Building server..."
@mkdir -p bin
@CGO_ENABLED=0 go build -a -installsuffix cgo -o bin/server .
docker-build:
@echo "Building Docker image..."
@docker build -t {{ docker_image_name }} .