-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 749 Bytes
/
Makefile
File metadata and controls
43 lines (32 loc) · 749 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
39
40
41
42
43
.PHONY: build run unit-test integration-test test fmt vet lint ci tidy prek-all prek-install
# Build the CLI binary
build:
go build -o output/lapp ./cmd/lapp/
# Run unit tests only
unit-test:
go test ./pkg/...
# Run integration tests (requires LOGHUB_PATH)
integration-test:
go test -v -timeout 15m -count=1 ./integration_test/...
# Run all tests (unit + integration)
test: unit-test integration-test
# Format Go code
fmt:
gofmt -l -w .
# Run go vet
vet:
go vet ./...
# Run golangci-lint
lint:
golangci-lint run
# Run all CI checks (same as pre-commit)
ci: fmt vet build lint unit-test
# Tidy go modules
tidy:
go mod tidy
# Run prek on all files
prek-all:
prek run --all-files
# Install prek git hooks
prek-install:
prek install