sponsor logos added to section #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Database Consistency | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| schema-drift: | |
| name: Prevent uncommitted migration drift | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate migrations (should be a no-op) | |
| run: npm run db:gen | |
| - name: Fail if migrations changed | |
| run: | | |
| git status --porcelain | |
| if ! git diff --exit-code -- utils/migrations/; then | |
| echo "Drizzle generated new migration files. Commit them or reconcile schema before merging." >&2 | |
| exit 1 | |
| fi |