-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·29 lines (23 loc) · 873 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
go-dependencies:
$(eval GOBIN=$(shell go env GOPATH 2>/dev/null)/bin)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) latest
#
go install github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@latest
#
go install github.com/onsi/ginkgo/v2/ginkgo@latest
go-update: go-dependencies
go mod tidy && go get -t -v -u ./...
go-generate: go-dependencies
go generate ./...
$(MAKE) go-update
go-lint:
editorconfig-checker
golangci-lint run
go-test:
ginkgo -race --cover --coverprofile=.coverage-ginkgo.out --junit-report=junit-report.xml ./...
go tool cover -func=.coverage-ginkgo.out -o=.coverage.out
go tool cover -html=.coverage-ginkgo.out -o=coverage.html
cat .coverage.out
go-all-tests: go-generate go-lint go-test
go-all: go-dependencies go-all-tests
go mod tidy || :