Update Makefile
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
BIN=go
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
${BIN} build -v ./...
|
go build -v ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -race -v ./...
|
go test -race -v ./...
|
||||||
@@ -15,17 +13,17 @@ watch-bench:
|
|||||||
reflex -t 50ms -s -- sh -c 'go test -benchmem -count 3 -bench ./...'
|
reflex -t 50ms -s -- sh -c 'go test -benchmem -count 3 -bench ./...'
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
${BIN} test -v -coverprofile=cover.out -covermode=atomic .
|
go test -v -coverprofile=cover.out -covermode=atomic ./...
|
||||||
${BIN} tool cover -html=cover.out -o cover.html
|
go tool cover -html=cover.out -o cover.html
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
${BIN} install github.com/cespare/reflex@latest
|
go install github.com/cespare/reflex@latest
|
||||||
${BIN} install github.com/rakyll/gotest@latest
|
go install github.com/rakyll/gotest@latest
|
||||||
${BIN} install github.com/psampaz/go-mod-outdated@latest
|
go install github.com/psampaz/go-mod-outdated@latest
|
||||||
${BIN} install github.com/jondot/goweight@latest
|
go install github.com/jondot/goweight@latest
|
||||||
${BIN} install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
${BIN} get -t -u golang.org/x/tools/cmd/cover
|
go get -t -u golang.org/x/tools/cmd/cover
|
||||||
${BIN} install github.com/sonatype-nexus-community/nancy@latest
|
go install github.com/sonatype-nexus-community/nancy@latest
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@@ -34,10 +32,10 @@ lint-fix:
|
|||||||
golangci-lint run --timeout 60s --max-same-issues 50 --fix ./...
|
golangci-lint run --timeout 60s --max-same-issues 50 --fix ./...
|
||||||
|
|
||||||
audit:
|
audit:
|
||||||
${BIN} list -json -m all | nancy sleuth
|
go list -json -m all | nancy sleuth
|
||||||
|
|
||||||
outdated:
|
outdated:
|
||||||
${BIN} list -u -m -json all | go-mod-outdated -update -direct
|
go list -u -m -json all | go-mod-outdated -update -direct
|
||||||
|
|
||||||
weight:
|
weight:
|
||||||
goweight
|
goweight
|
||||||
|
|||||||
Reference in New Issue
Block a user