sp4-otel-1770445387/workers/worker-svc/Makefile
jordan fcdbc55d8e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add components: service/auth-svc, service/chat-svc, worker/worker-svc
2026-02-07 06:23:14 +00:00

35 lines
585 B
Makefile

.PHONY: build run test lint fmt docker-build clean
WORKER := worker-svc
BINARY := bin/$(WORKER)
GO_MODULE := git.threesix.ai/jordan/sp4-otel-1770445387
# Build the worker binary
build:
go build -o $(BINARY) ./cmd/worker
# Run the worker locally
run:
go run ./cmd/worker
# Run tests
test:
go test -v ./...
# Run linter
lint:
golangci-lint run ./...
# Format code
fmt:
gofmt -w .
goimports -w -local $(GO_MODULE) .
# Build Docker image (run from monorepo root)
docker-build:
docker build -t $(WORKER):latest -f Dockerfile ../..
# Clean build artifacts
clean:
rm -rf bin/