-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (24 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (24 loc) · 760 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
.PHONY: clean lint test generate build install serve-issues serve-discussions verify verify-issues verify-discussions
export CGO_ENABLED=0
default: clean lint test generate build verify
clean:
rm -rf cover.out
generate:
go generate ./...
build: clean
go build -ldflags "-s -w" -trimpath
install: clean generate
go install -ldflags "-s -w" -trimpath
test: clean
go test -v -cover ./...
lint:
golangci-lint run
serve-issues: generate
go run . --dir testdata/ISSUE_TEMPLATE/
serve-discussions: generate
go run . --dir testdata/DISCUSSION_TEMPLATE
verify: verify-issues verify-discussions
verify-issues: generate
go run . verify --dir testdata/ISSUE_TEMPLATE/
verify-discussions: generate
go run . verify --dir testdata/DISCUSSION_TEMPLATE/