forked from lerenn/asyncapi-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 812 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 812 Bytes
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
DAGGER_COMMAND := dagger run go run ./build/ci/dagger.go
ifndef EXAMPLE
EXAMPLE=""
endif
ifndef TEST
TEST=""
endif
ifndef TAG
TAG=""
endif
.PHONY: ci
ci: ## Run the CI
@${DAGGER_COMMAND} all
.PHONY: lint
lint: ## Lint the code
@${DAGGER_COMMAND} linter
.PHONY: examples
examples: ## Perform examples
@${DAGGER_COMMAND} examples -e ${EXAMPLE}
.PHONY: test
test: ## Perform tests
@${DAGGER_COMMAND} test -t ${TEST}
.PHONY: generate
generate: ## Generate files
@${DAGGER_COMMAND} generator
.PHONY: publish
publish: ## Publish with tag on git, docker hub, etc.
@${DAGGER_COMMAND} publish --tag ${TAG}
.PHONY: help
help: ## Display this help message
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\/-]+:.*?## / {printf "\033[34m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \
grep -v '#'