-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 1.05 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
GOLANGCI_LINT_VERSION := 1.39.0
.Phony: init
init:
test -f .env || cp .env.template .env
.PHONY: lint
lint:
./bin/golangci-lint run --config=".github/.golangci.yml" --fast ./...
.PHONY: bootstrap_golangci_lint
bootstrap_golangci_lint:
mkdir -p bin
curl -L -o ./bin/golangci-lint.tar.gz https://github.com/golangci/golangci-lint/releases/download/v$(GOLANGCI_LINT_VERSION)/golangci-lint-$(GOLANGCI_LINT_VERSION)-$(shell uname -s)-amd64.tar.gz
cd ./bin && \
tar xzf golangci-lint.tar.gz && \
mv golangci-lint-$(GOLANGCI_LINT_VERSION)-$(shell uname -s)-amd64/golangci-lint golangci-lint && \
rm -rf golangci-lint-$(GOLANGCI_LINT_VERSION)-$(shell uname -s)-amd64 *.tar.gz
.PHONY: bootstrap_ngrok
bootstrap_ngrok:
mkdir -p bin
curl -L -o ./bin/ngrok-stable-darwin-amd64.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-darwin-amd64.zip
cd ./bin && \
unzip ngrok-stable-darwin-amd64.zip && \
rm -rf ngrok-stable-darwin-amd64.zip
.PHONY: run_server
run_server:
cd backend/cmd && go run .
.PHONY: run_ngrok
run_ngrok:
cd bin && ./ngrok http 8080 -region=ap