33 lines
628 B
YAML
33 lines
628 B
YAML
name: Validate Production Schema
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
validate-schema:
|
|
name: Validate Schema
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.10
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Validate schema
|
|
env:
|
|
DATABASE_URL: ${{ secrets.DATABASE_READ_ONLY_URL }}
|
|
DB_MAX_CONNECTIONS: 1
|
|
run: bun scripts/migrations/validate-schema.ts
|