-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 741 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 741 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
.PHONY: install-gofumpt
install-gofumpt:
@go install mvdan.cc/gofumpt@latest
.PHONY: install-golangci
install-golangci:
@go install github.com/golangci/golangci-lint/cmd/[email protected]
.PHONY: build
build:
@go build ./...
.PHONY: lint
lint:
./lint.sh
.PHONY: fmt
fmt: install-gofumpt
@gofmt -s -w .
@gofumpt -l -w .
.PHONY: test
test:
@go test -v ./...
.PHONY: test-unit
test-unit:
@go test -short -v ./...
.PHONY: test-integration
test-integration:
@go test -coverprofile cover.out -v -race -parallel 16 -timeout 20m ./...
@go tool cover -func=cover.out
.PHONY: setup-hooks
setup-hooks:
git config core.hooksPath .githooks
@echo "Git hooks configured to use .githooks/"
.PHONY: generate
generate:
./generate.sh