-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 loc) · 1.58 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
44
.PHONY: dev-prerequisites \
dev-check-in \
install-act \
install-cookiecutter \
act-golang-ci
dev-prerequisites: dev-check-in install-act install-cookiecutter
dev-check-in:
@brew --version || { echo "📛 brew is not installed. See: https://brew.sh"; exit 1; }
@docker --version || { echo "📛 docker is not installed. See: https://docs.docker.com/engine/install"; exit 1; }
@python3 --version || { echo "📛 python3 is not installed. See: https://www.python.org/downloads/"; exit 1; }
@pip --version || { echo "📛 pip is not installed."; exit 1; }
@go version || ( echo "📛 golang is not installed. See: https://go.dev/doc/install"; exit 1; )
install-act:
brew install act
install-cookiecutter:
python3 -m pip install --user cookiecutter
golang-local-scaffold:
export OUT=$$(pwd)/.tmp/golang \
&& export OUT_PROJECT=$$OUT/MyGolangApp \
&& echo "$$OUT" \
&& rm -rf "$$OUT" \
&& cookiecutter --no-input -o $$OUT $$(pwd)/golang/ \
&& cd $$OUT_PROJECT \
&& printf "\n\n🌿 Templating Done. Now you can run:\n\ncd $$OUT_PROJECT\ngo get\ngo run main.go\n"
vuejs-local-scaffold:
export OUT=$$(pwd)/.tmp/vuejs \
&& export OUT_PROJECT=$$OUT/MyVueJSApp \
&& echo "$$OUT" \
&& rm -rf "$$OUT" \
&& cookiecutter --no-input -o $$OUT $$(pwd)/vuejs/ \
&& cd $$OUT_PROJECT \
&& printf "\n\n🌿 Templating Done. Now you can run:\n\ncd $$OUT_PROJECT\nnpm install\nnpm run dev\n"
act-golang-ci:
act -W .github/workflows/golang-ci.yaml --artifact-server-path /tmp/artifacts
act-vuejs-ci:
act -W .github/workflows/vuejs-ci.yaml --artifact-server-path /tmp/artifacts