-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
43 lines (29 loc) · 1.37 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
# Default goal when running `make`
.DEFAULT_GOAL := help
.PHONY: help all-tests binaries commit contract coverage install integration reinstall shipit unit updatedeps
# Help command to list all available targets
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
all-tests: ## Run all tests, including linting, formatting, and 'go mod tidy'
./scripts/all-tests.sh
binaries: ## Create binaries for multiple platforms
./scripts/binaries.sh
commit: ## Generate a commit message using ChatGPT based on git diff
git status -vv | chatgpt -n -p ../prompts/create_git_diff_commit.md
contract: ## Run contract tests
./scripts/contract.sh
coverage: ## Generate a combined coverage report for unit, integration, and contract tests
./scripts/coverage.sh
install: ## Build the binaries for the specified OS (default: darwin)
./scripts/install.sh $(TARGET_OS)
integration: ## Run integration tests
./scripts/integration.sh
reinstall: ## Reinstall binaries (default target OS: darwin)
./scripts/reinstall.sh $(TARGET_OS)
.PHONY: shipit
shipit: ## Run the release script, create binaries, and generate release notes
./scripts/shipit.sh $(version) "$(message)"
unit: ## Run unit tests
./scripts/unit.sh
updatedeps: ## Update dependencies and vendor them
./scripts/updatedeps.sh