CI: Postgres migration smoke
This commit is contained in:
1 parent
0e7a57052b
commit
c7f22a0990
2 files changed
+84
No files matched your search
@@ -21,6 +21,16 @@ Use `npx prisma studio` to inspect the database.
|
||||
production, or any shared database. Add a **new** migration that
|
||||
corrects the schema instead. Full policy:
|
||||
[docs/guides/backend-roadmap.md](docs/guides/backend-roadmap.md) §8.
|
||||
- **CI smoke:** [`.gitea/workflows/migrate-smoke.yaml`](.gitea/workflows/migrate-smoke.yaml)
|
||||
spins up a throwaway Postgres and runs `npm run db:deploy` whenever
|
||||
`prisma/**` changes on a PR (or via `workflow_dispatch`). If the
|
||||
runner cannot run Docker/Postgres, run the same check locally before
|
||||
merging migration changes:
|
||||
|
||||
```bash
|
||||
docker compose up -d postgres
|
||||
npm run db:deploy
|
||||
```
|
||||
|
||||
### API routes
|
||||
|
||||
|
||||
Reference in new issue
Block a user