forked from dosedetelemetria/projeto-otel-na-pratica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (41 loc) · 1.28 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
40
41
42
43
44
45
46
47
48
49
50
51
52
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo Para construir o projeto, execute:
@echo ;
@echo "\t make build"
@echo ;
.PHONY: lint
lint:
@golangci-lint --timeout 30s run ./... --show-stats
.PHONY: test
test:
@go test -v ./...
.PHONY: vulncheck
vulncheck:
@govulncheck ./...
.PHONY: vulnfix
vulnfix:
@go get -t -u
.PHONY: build
build: build-users build-payments build-plans build-subscriptions
.PHONY: build-users
build-users:
@goreleaser build -f=.goreleaser.yaml --snapshot --clean --single-target --id users
.PHONY: build-payments
build-payments:
@goreleaser build -f=.goreleaser.yaml --snapshot --clean --single-target --id payments
.PHONY: build-subscriptions
build-subscriptions:
@goreleaser build -f=.goreleaser.yaml --snapshot --clean --single-target --id subscriptions
.PHONY: build-plans
build-plans:
@goreleaser build -f=.goreleaser.yaml --snapshot --clean --single-target --id plans
.PHONY: install-tools
install-tools:
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
@go install golang.org/x/vuln/cmd/govulncheck@latest
@go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
@go install github.com/nats-io/nats-server/v2@main
@go install github.com/nats-io/natscli/nats@latest
@go install github.com/goreleaser/goreleaser/v2@latest