-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (28 loc) · 697 Bytes
/
makefile
File metadata and controls
34 lines (28 loc) · 697 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
.PHONY:all test test-coverage install-tools fmt vet lint
all: fmt test
test:
go test -v -race -shuffle=on -timeout=1m -count=1
test-coverage:
@go test -race -failfast -shuffle=on -timeout=1m -count=1 -cover -coverprofile=out.html
@go tool cover -html=out.html
install-tools:
go install mvdan.cc/gofumpt@v0.8.0
go install github.com/daixiang0/gci@v0.13.6
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.2
fmt:
@gofumpt -w -extra .
@gci write \
--custom-order \
--section standard \
--section default \
--section blank \
--section dot \
--skip-generated \
.
vet:
go vet ./...
lint:
@golangci-lint run \
-c .golangci.yml \
-v \
./...