-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (34 loc) · 1.04 KB
/
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
37
38
39
go-dependencies:
# https://asdf-vm.com/
asdf install golang || :
#
# https://github.com/securego/gosec
go install github.com/securego/gosec/v2/cmd/gosec@latest
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
#
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
#go install github.com/nunnatsa/ginkgolinter/cmd/ginkgolinter@latest
#
#go install github.com/onsi/ginkgo/v2/ginkgo@latest
#
#go install github.com/vektra/mockery/v2@latest
#
asdf reshim golang || :
#
go get -u -t -v ./... || :
go-generate: go-dependencies
#mockery
go generate ./...
go-lint: go-dependencies
golangci-lint run
#ginkgolinter ./...
go vet -vettool=$$(go env GOPATH)/bin/shadow ./...
go-test: go-lint
gosec ./...
go test -v -count=1 ./...
#ginkgo -r -race --cover --coverprofile=.coverage-ginkgo.out --junit-report=junit-report.xml ./...
#go tool cover -func=.coverage-ginkgo.out -o=.coverage.out
#cat .coverage.out
go-all-tests: go-dependencies go-generate go-lint go-test
go-all: go-all-tests
go mod tidy || :