add CatalogItem migration and CI schema drift check

This commit is contained in:
2026-02-25 22:28:07 -06:00
parent 49faf97c9b
commit 8949819396
2 changed files with 86 additions and 0 deletions
+23
View File
@@ -5,8 +5,31 @@ on:
types: [created]
jobs:
check-migrations:
name: Check for Missing Migrations
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Check for schema drift
run: |
bunx prisma migrate diff \
--from-migrations prisma/migrations \
--to-schema-datamodel prisma/schema.prisma \
--exit-code
env:
DATABASE_URL: "postgresql://dummy:dummy@localhost:5432/dummy"
build:
name: Build
needs: [check-migrations]
runs-on: ubuntu-latest
permissions:
contents: read