Skip to content

Commit b119cc1

Browse files
authored
Improvement/ci enforce drizzle check (#1426)
<!-- PR title format: type(scope): description — e.g., feat(auth): add SSO login --> <!-- Keep the title under 72 characters, use imperative mood, no trailing period. --> ## Summary - Enforce `pnpm drizzle check` on pre-push and in GitHub workflows - Fix migration conflict in main
2 parents a443127 + d642ab0 commit b119cc1

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,33 @@ jobs:
130130
exit 1
131131
}
132132
133+
drizzle-check:
134+
runs-on: ${{ vars.RUNNER_DEFAULT_LABEL || 'ubuntu-latest' }}
135+
steps:
136+
- uses: useblacksmith/checkout@v1
137+
with:
138+
lfs: true
139+
140+
- name: Setup pnpm
141+
uses: pnpm/action-setup@v2
142+
with:
143+
version: latest
144+
run_install: false
145+
146+
- name: Setup Node
147+
uses: actions/setup-node@v4
148+
with:
149+
node-version: 22
150+
cache: 'pnpm'
151+
152+
- name: Install dependencies
153+
run: pnpm install --frozen-lockfile
154+
155+
- name: Drizzle check
156+
run: pnpm drizzle check
157+
env:
158+
POSTGRES_URL: postgresql://unused:unused@localhost:5432/unused
159+
133160
dependency-cycle-check:
134161
runs-on: ${{ vars.RUNNER_DEFAULT_LABEL || 'ubuntu-latest' }}
135162
steps:

packages/db/src/migrations/meta/0057_snapshot.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)