-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 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
33
34
# Change these variables as necessary.
PACKAGE_PATH := ./...
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
help:
@echo 'Usage:'
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
# ==================================================================================== #
# QUALITY CONTROL
# ==================================================================================== #
## test: run all tests with coverage
.PHONY: test
test:
@echo "Running tests..."
@go test -v -race -cover -buildvcs ${PACKAGE_PATH}
# ==================================================================================== #
# DEVELOPMENT
# ==================================================================================== #
## tidy: format code and tidy modfile
.PHONY: tidy
tidy:
@echo "Formatting code..."
@gofumpt -l -w .
@echo "Tidying Go mod..."
@go mod tidy -v