forked from go-fuego/fuego
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (29 loc) · 862 Bytes
/
Makefile
File metadata and controls
43 lines (29 loc) · 862 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
default: ci
ci: fmt lint cover
ci-full: ci sec 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
sec:
go run github.com/securego/gosec/v2/cmd/gosec@latest ./...
dependencies-analyze:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
fmt:
go run mvdan.cc/gofumpt@latest -l -w .
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
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