-
Notifications
You must be signed in to change notification settings - Fork 124
/
Makefile
46 lines (35 loc) · 864 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
37
38
39
40
41
42
43
44
45
46
.PHONY: test
test:
go test ./...
.PHONY: test-quick
test-quick:
go test -count=1 ./...
.PHONY: test-race
test-race:
go test -race ./...
# updateTestFixtures will update all! golden fixtures
.PHONY: updateTestFixtures
updateTestFixtures:
go test ./pkg/... -update
.PHONY: format
format:
go fmt ./...
.PHONY: prepare-merge
prepare-merge: format test
.PHONY: ci
ci: test
.PHONY: ci-quick
ci-full: test-quick
.PHONY: generate
generate: $(GOPATH)/bin/go-enum $(GOPATH)/bin/mockgen $(GOPATH)/bin/stringer
go generate ./...
go mod tidy
$(GOPATH)/bin/go-enum:
go get -u github.com/abice/go-enum
go install github.com/abice/go-enum
$(GOPATH)/bin/mockgen:
go get -u github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
$(GOPATH)/bin/stringer:
go get -u -a golang.org/x/tools/cmd/stringer
go install golang.org/x/tools/cmd/stringer