-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (34 loc) · 1.16 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
GOBASE := $(shell pwd)
GOBIN := $(shell go env GOPATH)/bin
.PHONY: help
all: help
.PHONY: test
test:
@echo #####
@echo ##### Installing GoModeler
go install -v github.com/toolsascode/gomodeler@latest
@echo ##### Running :: Testing Complete
$(GOBIN)/gomodeler -f ./.github/workflows/examples/complete/envFile.yaml \
--template-path ./.github/workflows/examples/complete/templates \
--output-path ./.github/workflows/examples/complete/outputs \
--log-level debug
@echo ##### Running :: Testing Summary
$(GOBIN)/gomodeler -f ./.github/workflows/examples/summary/envFile.yaml \
--template-path ./.github/workflows/examples/summary/templates \
--output-path ./.github/workflows/examples/summary/outputs \
--log-level debug
@echo ##### Uninstalling GoModeler
rm $(GOBIN)/gomodeler
.PHONY: help
help: Makefile
@echo
@echo "Usage: make [options]"
@echo
@echo "Options:"
@echo " build Create binary file"
@echo " run Run GoModeler"
@echo " run-test Run GoModeler"
@echo " dist-test Run GoModeler"
@echo " docs Run GoModeler"
@echo " version Set version in go application"
@echo " Help "