persona-community-5/workers/media-worker/Makefile
jordan f5f3229364
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add components: service/persona-api, worker/media-worker, app-react/creator-ui
2026-02-24 07:40:04 +00:00

39 lines
671 B
Makefile

.PHONY: build run dev test lint fmt docker-build clean
WORKER := media-worker
BINARY := bin/$(WORKER)
GO_MODULE := git.threesix.ai/jordan/persona-community-5
# Build the worker binary
build:
go build -o $(BINARY) ./cmd/worker
# Run the worker locally
run:
go run ./cmd/worker
# Run the worker in development mode (alias for run)
dev:
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/