-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 884 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 884 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
.PHONY: build test test-core test-providers vet clean help
## Build all packages
build:
go build ./...
## Run all tests with race detector
test:
go test ./... -race -count=1
## Run core tests only (no network calls)
test-core:
go test ./pkg/models/... ./pkg/retry/... ./pkg/circuit/... ./pkg/health/... ./pkg/provider/... ./pkg/http/... -race -count=1
## Run provider tests
test-providers:
go test ./pkg/providers/... -race -count=1
## Run vet
vet:
go vet ./...
## Clean build cache
clean:
go clean -cache -testcache
## Show help
help:
@echo "Available targets:"
@echo " build - Build all packages"
@echo " test - Run all tests with race detector"
@echo " test-core - Run core tests only (no network calls)"
@echo " test-providers - Run provider tests"
@echo " vet - Run go vet"
@echo " clean - Clean build cache"