File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -322,6 +322,40 @@ jobs:
322322 fi
323323 echo "✅ Schema files are up to date"
324324
325+ migration-check :
326+ name : Migration Check 🗃️
327+ needs : [backend-build]
328+ runs-on : ubuntu-24.04
329+ steps :
330+ - uses : actions/checkout@v4
331+
332+ - name : Setup environment
333+ uses : ./.github/actions/setup-env
334+ with :
335+ node : " false"
336+
337+ - name : Download backend build result
338+ uses : ./.github/actions/download-backend-build
339+
340+ - name : Generate migration diff
341+ run : ./gradlew diffChangeLog
342+ env :
343+ SKIP_SERVER_BUILD : true
344+
345+ - name : Check for uncommitted migration changes
346+ run : |
347+ if [ -n "$(git status --porcelain)" ]; then
348+ echo "❌ Migration files are out of date! Please run './gradlew diffChangeLog' locally and commit the changes."
349+ echo ""
350+ echo "Changed files:"
351+ git status --porcelain
352+ echo ""
353+ echo "Diff:"
354+ git diff
355+ exit 1
356+ fi
357+ echo "✅ Migration files are up to date"
358+
325359 e2e-code-checks :
326360 name : E2E Static Check 🪲
327361 runs-on : ubuntu-24.04
@@ -399,6 +433,7 @@ jobs:
399433 - frontend-build
400434 - frontend-code-check
401435 - schema-check
436+ - migration-check
402437 - e2e
403438 - e2e-code-checks
404439 - e2e-install-deps
@@ -433,6 +468,10 @@ jobs:
433468 failed_jobs+=("schema-check")
434469 fi
435470
471+ if [[ "${{ needs.migration-check.result }}" != "success" ]]; then
472+ failed_jobs+=("migration-check")
473+ fi
474+
436475 if [[ "${{ needs.e2e.result }}" != "success" ]]; then
437476 failed_jobs+=("e2e")
438477 fi
You can’t perform that action at this time.
0 commit comments