-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMakefile
36 lines (26 loc) · 736 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
all: # nothing - to speed up advanced security scan
test:
go test -race -timeout 0 ./...
update-linting-tools:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install golang.org/x/vuln/cmd/govulncheck@latest
lint: update-linting-tools
golangci-lint run -v ./...
govulncheck ./...
update-dependencies:
go get -u ./...
go mod tidy
go mod vendor
generate:
find . -type d -name '*fakes' | xargs rm -r
go generate ./...
install-release-tool:
go install github.com/elgohr/semv@latest
porcelain:
./scripts/porcelain.sh
new-patch-release: porcelain
./scripts/release.sh --patch
new-minor-release: porcelain
./scripts/release.sh --minor
new-major-release: porcelain
./scripts/release.sh --major