Tests each new Postiz build on a gamma environment before it reaches production. It runs in shadow mode: it reports, and changes nothing about how main is merged or deployed.
Every 4 hours, or on demand from the dashboard, a cycle:
- Collects main's commits since the last green run (none means the cycle is skipped).
- Moves postiz-app's
gammabranch to main's newest commit, then waits for gamma's deploy run in GitHub Actions. - Checks the test channels, then runs the Playwright scenarios against gamma: the API and MCP answer, and real posts publish to test channels (text, image, scheduled) and are deleted afterwards where the platform allows.
- Re-runs each failure once to confirm it, classifies it (code, infrastructure, external platform), and records the verdict.
- On a confirmed red, emails the alert and halts. An admin resumes from the dashboard, with a reason that goes to the audit log.
Moving gamma, email and AI analysis stay dry-run until their credentials are set (GAMMA_WRITES, SES_REGION, OPENAI_API_KEY).
| Path | What |
|---|---|
apps/web |
Next.js dashboard: runs, SLIs, test targets, audit log, admin commands, email and password sign-in |
apps/worker |
Temporal worker: the controller and cycle workflows and their activities |
scenarios |
Playwright scenarios and fixtures |
libs/core |
Shared code: auth, GitHub, deploy, email, AI and Postiz clients, platform cleanup |
libs/db |
Prisma schema and seed scripts |
Requirements: Node.js 22, pnpm, Docker, and a local Postiz to test against.
- Copy
.env.exampleto.envand fill it in. Generate your ownJWT_SECRETandENCRYPTION_KEY. - Start Postgres and Temporal:
pnpm dev:docker(Postgres on 5442, Temporal on 7243, Temporal UI on http://localhost:8088). - Install and create the schema:
pnpm install, thenpnpm prisma-db-push. - Create your account: once the dashboard runs (step 7), sign up at http://localhost:4300/signup with your @postiz.com email (every sign-up is an admin). Or now,
pnpm seed:member you@postiz.com admin, which prints a temporary password once; change it from your email in the dashboard header. - Run a local Postiz from its own worktree on main, with a test org whose channels are test accounts only (every run publishes real posts to them).
- Seed the target: put that org's API key in
SEED_POSTIZ_API_KEY, thenpnpm seed:target local http://localhost:3000 <integration id> ...with the IDs of the channels to test. - Start the dashboard (
pnpm dev:web, http://localhost:4300) and the worker (pnpm dev:worker).
On the dashboard's Test targets page, save platform credentials (for example a Telegram bot token) so cleanup can delete published posts on the platform itself.
- Run now: the dashboard's Run now button (admins, only while idle).
- Force a red: set
forceFailon a scenario in theScenariotable. It fails before publishing anything. Unset it afterwards. - Resume after a red: the dashboard's Resume button, with a reason.
- List scenarios:
pnpm scenarios:list.
- Read
CLAUDE.mdfor the house rules: pnpm only, Prisma only, follow postiz-app's patterns, integrations dry-run by default. - Branch off
mainand open a PR intomain. - CodeRabbit doesn't review this repo automatically: comment
@coderabbitai reviewon each PR. - Never commit
.envor credentials. Test credentials stay on the test targets page (encrypted) or in your local.env.