Skip to content

Commit 99679f1

Browse files
committed
chore: add makefile
1 parent e12885c commit 99679f1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.PHONY: build test lint addlicense install-tools
2+
3+
build:
4+
CGO_ENABLED=1 go build -v ./...
5+
6+
test:
7+
CGO_ENABLED=1 go test -race -v ./...
8+
9+
lint:
10+
go vet ./...
11+
golangci-lint run ./...
12+
staticcheck ./...
13+
gosec -quiet ./...
14+
15+
addlicense:
16+
addlicense -v -c "voidint <[email protected]>" -l mit .
17+
18+
install-tools:
19+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
20+
go install github.com/securego/gosec/v2/cmd/gosec@latest
21+
go install honnef.co/go/tools/cmd/staticcheck@latest
22+
go install github.com/google/addlicense@latest

0 commit comments

Comments
 (0)