-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 888 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 888 Bytes
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
default: test
help:
@echo "Available targets:"
@echo " help - Display this help message"
@echo " install-deps - Download Go module dependencies"
@echo " test - Run all tests with verbose output"
@echo " test-cover - Run tests with coverage report"
@echo " update-packages - Update all Go module dependencies"
@echo " tidy - Tidy Go module dependencies"
@echo " clean - Remove build artifacts"
@echo " fmt - Format all Go source files"
install-deps:
go mod download
test:
go test ./... -v
test-cover:
go test -coverprofile build/cover.out ./...
go tool cover -html=build/cover.out
update-packages:
go get -u all
tidy:
go mod tidy
clean:
find ./build ! -name '.gitkeep' -type f -delete
fmt:
go fmt ./...
.PHONY: default help install-deps test test-cover update-packages tidy clean fmt