-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·28 lines (22 loc) · 882 Bytes
/
Makefile
File metadata and controls
executable file
·28 lines (22 loc) · 882 Bytes
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
go-all: go-update go-generate go-all-tests
go-all-tests: go-lint go-unit-tests
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 generate ./...
$(MAKE) go-update
go-lint:
editorconfig-checker
golangci-lint run
go-unit-tests:
ginkgo -race --cover --coverprofile="ginkgo-coverage-unit.out" --junit-report="junit-report.xml" ./...
go tool cover -func "ginkgo-coverage-unit.out" -o "coverage-unit.out"
go tool cover -html "ginkgo-coverage-unit.out" -o "coverage-unit.html"
cat coverage-unit.out