-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 1.26 KB
/
Makefile
File metadata and controls
52 lines (39 loc) · 1.26 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
48
49
50
51
52
# proton-cli - Development Makefile
.PHONY: test coverage coverage-html coverage-func lint fmt vet mod-tidy mod-verify build clean help
help:
@echo "proton-cli Development Targets"
@echo "=============================="
@echo ""
@echo " test - Run all tests"
@echo " coverage - Generate coverage profile"
@echo " coverage-html - Generate HTML coverage report"
@echo " coverage-func - Display function-level coverage"
@echo " lint - Run golangci-lint"
@echo " fmt - Format Go code"
@echo " vet - Run go vet"
@echo " mod-tidy - Tidy go.mod and go.sum"
@echo " mod-verify - Verify go.mod dependencies"
@echo " build - Build proton-cli binary"
@echo " clean - Remove generated files"
test:
go test -v -race ./...
coverage:
go test -coverprofile=coverage.out -covermode=atomic ./...
coverage-html: coverage
go tool cover -html=coverage.out -o coverage.html
coverage-func: coverage
go tool cover -func=coverage.out
lint:
golangci-lint run --config .golangci.yml ./...
fmt:
go fmt ./...
vet:
go vet ./...
mod-tidy:
go mod tidy
mod-verify:
go mod verify
build:
go build -v -o proton-cli .
clean:
rm -f proton-cli coverage.out coverage.html