- docker
npm install
- Run
docker compose upin/test/db - Run the tests:
npm run test:run - Make changes in code (
/src) and tests (/test/liband/test/server) - Run the tests again:
npm run test:run - Commit + PR
For testing your changes when they impact other things (like type generation and postgrest-js), you can deploy a canary version of postgres-meta:
- Create a Pull Request targeting the
masterbranch - Add the
deploy-canarylabel to your PR - Wait for the canary build - GitHub Actions will automatically build and push a canary Docker image
- Use the canary image - The bot will comment on your PR with the exact image tag and usage instructions
The canary image will be tagged as:
supabase/postgres-meta:canary-pr-{PR_NUMBER}-{COMMIT_SHA}supabase/postgres-meta:canary-pr-{PR_NUMBER}
Example usage:
docker pull supabase/postgres-meta:canary-pr-123-abc1234
echo "canary-pr-123-abc1234" > supabase/.temp/pgmeta-versionNote: Only maintainers can add the deploy-canary label for security reasons. The canary deployment requires access to production Docker registries.