-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 764 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 764 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
.DEFAULT_GOAL := help
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
default: help
.PHONY: help
help:
@grep -E '^[a-zA-Z%_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: test
test: ## Test
GO111MODULE=on go test -count=1 -mod=vendor -v ./...
.PHONY: fmt
fmt: ## Go format
go fmt ./...
.PHONY: vet
vet: ## Go vet
go vet ./...
.PHONY: lint
lint: ## Lint
@golangci-lint run
.PHONY: deps
deps: ## Get dependencies
GO111MODULE=on go get ./...
.PHONY: vendor
vendor: ## Go vendor
GO111MODULE=on go mod vendor
.PHONY: tidy
tidy: ## Go tidy
GO111MODULE=on go mod tidy
.PHONY: protoc-gen
protoc-gen: ## Generate protobuf files
earthly +generate