-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
31 lines (22 loc) · 853 Bytes
/
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
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help
ide-setup: ## Installs specific requirements for local development
go mod tidy
pre-commit install
lint: ## Run lint
golangci-lint run --fix ./...
test: ## Run unit tests
go test -short ./...
testwatch: ## Run unit tests in watch mode, re-running tests on each file change
-gotestsum --format pkgname -- -short ./...
gotestsum --watch --format pkgname -- -short ./...
build: ## Build the binary
go build ./
install-extension-local: build ## Installs the extension locally
gh extension remove prx || true
gh extension install .
install-extension-remote: ## Installs the extension remotely
gh extension remove prx || true
gh extension install ilaif/gh-prx