forked from evstack/ev-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.mk
More file actions
47 lines (42 loc) · 1.1 KB
/
Copy pathutils.mk
File metadata and controls
47 lines (42 loc) · 1.1 KB
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
## deps: Install dependencies
deps:
@echo "--> Installing dependencies"
@go mod download
@go mod tidy
@go run scripts/tidy.go
.PHONY: deps
tidy-all:
@go run -tags=tidy scripts/tidy.go
.PHONY: tidy-all
## lint: Run linters golangci-lint and markdownlint.
lint: vet
@echo "--> Running golangci-lint"
@golangci-lint run
@echo "--> Running markdownlint"
@markdownlint --config .markdownlint.yaml '**/*.md'
@echo "--> Running hadolint"
@hadolint test/docker/mockserv.Dockerfile
@echo "--> Running yamllint"
@yamllint --no-warnings . -c .yamllint.yml
@echo "--> Running goreleaser check"
@goreleaser check
@echo "--> Running actionlint"
@actionlint
.PHONY: lint
## fmt: Run fixes for linters.
lint-fix:
@echo "--> Formatting go"
@golangci-lint run --fix
@echo "--> Formatting markdownlint"
@markdownlint --config .markdownlint.yaml --ignore './changelog.md' '**/*.md' -f
.PHONY: lint-fix
## vet: Run go vet
vet:
@echo "--> Running go vet"
@go vet ./...
.PHONY: vet
## mock-gen: generate mocks of types
mock-gen:
@echo "-> Generating mocks"
go run github.com/vektra/mockery/v3@latest
.PHONY: mock-gen