We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78b7643 commit 67529a7Copy full SHA for 67529a7
.github/workflows/test-build.yml
@@ -48,6 +48,19 @@ jobs:
48
ENCRYPTION_KEY: '7cf672e460e430c1fba707575c2b0e2ad5a99dddf9b7b7e3b5646e630861db1c' # dummy key for CI only
49
run: bun run test
50
51
+ - name: Check schema and migrations are in sync
52
+ working-directory: packages/db
53
+ run: |
54
+ bunx drizzle-kit generate --config=./drizzle.config.ts
55
+ if [ -n "$(git status --porcelain ./migrations)" ]; then
56
+ echo "❌ Schema and migrations are out of sync!"
57
+ echo "Run 'cd packages/db && bunx drizzle-kit generate' and commit the new migrations."
58
+ git status --porcelain ./migrations
59
+ git diff ./migrations
60
+ exit 1
61
+ fi
62
+ echo "✅ Schema and migrations are in sync"
63
+
64
- name: Build application
65
env:
66
NODE_OPTIONS: '--no-warnings'
0 commit comments