Set up the repository with the README quickstart.
Run Make targets from the repository root and use make help to list them.
For live reload, install air and run make dev. It starts the server with
the development configuration under test/.
make specs
make features
make benchmarks
make specs uses gotestsum to run the Go tests with race detection and
coverage. The Ruby harness starts its own server for features and benchmarks
using test/nonnative.yml. Stop any local server first
to free ports 11000 and 12000. The harness writes logs and reports under
test/reports/.
To rerun one feature or benchmark, pass its path relative to test/.
make features feature=features/v1/transport/http/generate.feature
make benchmarks feature=features/v1/transport/http/benchmark.feature
Use make format to format Go, Ruby, and protobuf files and make fix-lint
to apply available lint fixes. After make dep, run the local checks from the
CircleCI build job.
make lint
make sec
make features
make benchmarks
make analyse
make coverage
The build job also checks protobuf compatibility and generated output. See protobuf generation for those targets. CI publishes coverage and runs the release and deployment jobs.
Edit the v1 service definition and use Buf to format and lint it, then regenerate the client and server stubs.
make proto-format
make proto-lint
make proto-generate
The generation configuration writes Go stubs under
api/ and Ruby stubs under test/lib/. Before pushing an API change, use
make proto-breaking to compare it with the remote master baseline.
Use make proto-stale with no unstaged changes to check whether another
generation pass changes tracked files.
Non-master branches run Docker image validation for both supported
platforms. Run the same checks locally with Docker and the Trivy CLI installed.
make platform=amd64 test-docker
make platform=arm64 test-docker