-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
37 lines (28 loc) · 961 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
32
33
34
35
36
37
include tools/make/help.mk
.PHONY: check
check: check-generation lint test ## Run all the checks locally
.PHONY: check-generation
check-generation: ## Check files are generated locally
@sh ./scripts/check-generation.sh
.PHONY: clean
clean: local-env/stop ## Clean the project locally
@rm -rf ./tmp/certs
.PHONY: generate
generate: ## Generate files locally
@go generate ./...
.PHONY: lint
lint: ## Lint the code locally
@go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55 run ./...
.PHONY: local-env/start
local-env/start: ## Start the local environment
@go run ./tools/generate-certs
@docker-compose local-env/start -d
.PHONY: local-env/stop
local-env/stop: ## Stop the local environment
@docker-compose local-env/stop
.PHONY: publish
publish: dagger/publish ## Publish with tag on git, docker hub, etc. locally
@git tag ${TAG} && git push origin ${TAG}
.PHONY: test
test: local-env/start ## Perform tests locally
@go test ./...