-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
62 lines (48 loc) · 1.05 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.PHONY: all
.PHONY: clean
.PHONY: test
export
test:
$(eval export GITHUB_TOKEN=)
@true
init:
goreleaser init
# Lint on all dependencies and sub-dependencies
lint:
go fmt ./...
# Check for updates on all dependencies and sub-dependencies
update:
go list -m -u all
# Run Go analyzers in the current and all sub-directories
check:
go vet ./... && \
make staticcheck
# Prune unused dependencies include dependencies for all possible OS and system architectures
# Verify hash checks
dep-check:
go mod tidy && \
go mod verify
staticcheck:
go install honnef.co/go/tools/cmd/staticcheck@latest && \
staticcheck ./...
build:
make lint && \
make update && \
make check && \
make dep-check && \
goreleaser build --clean --debug
# Validate GoReleaser YAML template
validate:
goreleaser check
# Preview your changelog
changelog:
goreleaser changelog
# Checks if needed tools are installed
health:
goreleaser healthcheck
# Publishes a previously prepared release
publish:
goreleaser publish
# Releases the current project
release:
goreleaser release