-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 608 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 608 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
.PHONY: all lint test run dev local build setup-test-env teardown-test-env
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
all: lint test build
lint:
docker run \
-t \
--rm \
-v "${ROOT_DIR}/:/app" \
-w /app \
golangci/golangci-lint:v1.53.3 \
golangci-lint run -v
test:
go test -v ./...
run:
go run main.go
dev:
go run main.go -ssl-disable
local:
go build -o build/pizza-oven main.go
build:
docker buildx build \
--load \
--tag opensauced-pizza:latest \
.
setup-test-env:
./hack/setup.sh
teardown-test-env:
kind delete cluster --name opensauced-pizza