-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
49 lines (33 loc) · 1004 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
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
default: ci
ci: fmt lint cover
ci-full: ci dependencies-analyze bench
test:
go test ./...
cover:
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
cover-web: cover
go tool cover -html=coverage.out
bench:
go test -bench ./... -benchmem
build:
go build -v ./...
dependencies-analyze:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
fmt:
go run mvdan.cc/gofumpt@latest -l -w -extra .
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
lint-markdown:
markdownlint --fix .
example:
( cd examples/full-app-gourmet && go run . -debug )
example-watch:
( cd examples/full-app-gourmet && air -- -debug )
# Documentation website
docs:
go run golang.org/x/pkgsite/cmd/pkgsite@latest -http localhost:8084
docs-open:
go run golang.org/x/pkgsite/cmd/pkgsite@latest -http localhost:8084 -open
.PHONY: docs-open docs example-watch example lint lint-markdown fmt ci ci-full
.PHONY: dependencies-analyze build bench cover-web cover test