forked from poly-rodr/go-ethereum-hdwallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (28 loc) · 1.04 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
#######################################################
############## formats, lint, and tests ###############
#######################################################
.PHONY: fmt
fmt:
@echo "----------------------------------------------------------------"
@echo " ⚙️ Formatting code..."
@echo "----------------------------------------------------------------"
gofmt -s -w ./.
.PHONY: lint
lint:
@echo "----------------------------------------------------------------"
@echo " ⚙️ Linting code..."
@echo "----------------------------------------------------------------"
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run ./... -E gofmt --config=.golangci.yaml
go mod tidy
@echo "Linting complete!"
.PHONY: test
test:
@echo "----------------------------------------------------------------"
@echo " ⚙️ Testign the code..."
@echo "----------------------------------------------------------------"
GOPRIVATE=${PRIVATE_REPOS} go test ./... -v
@echo "Tests complete!"
.PHONE: build
build:
@echo