-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 755 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 755 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: build test clean lint fmt ci gazelle help
## Build the CLI binary
build:
bazel build //:zitadel-cli
## Run all tests
test:
bazel test //...
## Clean build artifacts
clean:
bazel clean
## Run linter (golangci-lint via Bazel)
lint:
bazel run //tools:lint
## Format code (gofumpt via Bazel)
fmt:
bazel run //tools:fmt
## Run all CI checks (fmt, lint, test)
ci: fmt lint test
## Update BUILD files after Go changes
gazelle:
bazel run //:gazelle
## Show help
help:
@echo "make build - Build CLI binary"
@echo "make test - Run tests"
@echo "make lint - Run linter"
@echo "make fmt - Format code"
@echo "make ci - Run fmt, lint, and test"
@echo "make gazelle - Update BUILD files"
@echo "make clean - Clean build"