sp4-test-1770369255/services/auth-svc/Makefile
jordan 3d28dd6a52
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add components: service/auth-svc, service/chat-svc, worker/worker-svc
2026-02-06 09:14:22 +00:00

35 lines
588 B
Makefile

.PHONY: build run test lint fmt docker-build clean
SERVICE := auth-svc
BINARY := bin/$(SERVICE)
GO_MODULE := git.threesix.ai/jordan/sp4-test-1770369255
# Build the service binary
build:
go build -o $(BINARY) ./cmd/server
# Run the service locally
run:
go run ./cmd/server
# 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 $(SERVICE):latest -f Dockerfile ../..
# Clean build artifacts
clean:
rm -rf bin/