feat: add reusable MySQL outbox and HTTP lifecycle example

This commit is contained in:
2026-09-24 20:54:36 +08:00
parent 0140c78ea7
commit e29dec717f
52 changed files with 2488 additions and 357 deletions

View File

@@ -1,25 +1,33 @@
GO ?= go
.PHONY: fmt test vet build image integration console-e2e compose-check mysql-replication mysql-compatibility sdk-check protocol-check docs-check stability-check schedule-backlog release-manifest release-local-check
.PHONY: fmt test vet build adapters-check image integration console-e2e compose-check mysql-replication mysql-compatibility sdk-check protocol-check docs-check stability-check schedule-backlog release-manifest release-local-check
fmt:
$(GO) fmt ./...
cd sdk/go && $(GO) fmt ./...
cd examples/result-inbox && GOWORK=off $(GO) fmt ./...
cd examples/task-outbox && GOWORK=off $(GO) fmt ./...
cd adapters/outbox/mysql && GOWORK=off $(GO) fmt ./...
cd examples/http-service && GOWORK=off $(GO) fmt ./...
test:
$(GO) test -race ./...
cd sdk/go && $(GO) test -race ./...
cd examples/result-inbox && GOWORK=off $(GO) test -race ./...
cd examples/task-outbox && GOWORK=off $(GO) test -race ./...
cd adapters/outbox/mysql && GOWORK=off $(GO) test -race ./...
cd examples/http-service && GOWORK=off $(GO) test -race ./...
vet:
$(GO) vet ./...
cd sdk/go && $(GO) vet ./...
cd examples/result-inbox && GOWORK=off $(GO) vet ./...
cd examples/task-outbox && GOWORK=off $(GO) vet ./...
cd adapters/outbox/mysql && GOWORK=off $(GO) vet ./...
cd examples/http-service && GOWORK=off $(GO) vet ./...
build:
cd adapters/outbox/mysql && GOWORK=off $(GO) build ./...
cd examples/http-service && GOWORK=off $(GO) build -o ../../bin/orbit-http-example ./cmd/server
$(GO) build -o bin/orbit ./cmd/orbit
$(GO) build -o bin/orbit-migrate ./cmd/orbit-migrate
$(GO) build -o bin/orbit-admin ./cmd/orbit-admin
@@ -68,3 +76,6 @@ release-local-check:
# Runs the bounded, intentionally incomplete persistent backlog rehearsal in an isolated MySQL.
schedule-backlog:
./scripts/test-schedule-backlog.sh
adapters-check:
./scripts/test-adapters.sh