Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.
TypeScript
ci(pr): give the unit-test job Postgres + Redis services
yetone99e4de6f990d
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex 2aa4d66..25573e2 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -93,11 +93,42 @@ jobs:name: Unit testsruns-on: ubuntu-latesttimeout-minutes: 10- # env.ts hard-requires OPENAI_API_KEY (process.exit(1) otherwise), and- # unit tests boot it. Provide a dummy so the boot passes — matches the- # value build.yml's quality job uses. No real key; unit tests never- # call a provider.+ # `npm test` (server/src/__tests__ + workers) boots env.ts and opens+ # Postgres/Redis connections, so this job needs the same service+ # containers + env as build.yml's quality job — without them tests+ # hang on ECONNREFUSED until the job times out. Dummy secrets only;+ # unit tests never reach a real provider. (pgvector isn't needed here —+ # build.yml runs `npm test` before enabling the extension.)+ services:+ postgres:+ image: pgvector/pgvector:pg16+ env:+ POSTGRES_USER: cumora+ POSTGRES_PASSWORD: cumora+ POSTGRES_DB: cumora_test+ ports:+ - 5432:5432+ options: >-+ --health-cmd "pg_isready -U cumora -d cumora_test"+ --health-interval 5s+ --health-timeout 5s+ --health-retries 10+ redis:+ image: redis:7-alpine+ ports:+ - 6379:6379+ options: >-+ --health-cmd "redis-cli ping"+ --health-interval 5s+ --health-timeout 5s+ --health-retries 10env:+ DATABASE_URL: postgres://cumora:cumora@localhost:5432/cumora_test+ REDIS_URL: redis://localhost:6379+ RESEND_API_KEY: ''+ EMAIL_DOMAIN: cumora.local+ EMAIL_INBOUND_HMAC_SECRET: ci-test-secret+ AUTH_SECRET: ci-test-auth-secretOPENAI_API_KEY: ci-test-openai-keysteps:- uses: actions/checkout@v4