Files
Moh 0f436ec05a
CI / quality (push) Waiting to run
FIXED - Drop leftover Prisma ?schema=public from the DB URL
- postgres.js forwarded schema as a startup param; Postgres rejected the connection
- Remove ?schema=public from docker-compose, CI, and the client default
- Strip any query string in lib/db/index.ts so this cannot recur
2026-08-08 03:04:26 +02:00

39 lines
802 B
YAML

name: CI
on:
push:
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/moh_sass
NEXT_TELEMETRY_DISABLED: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npm run prisma:generate
- name: Lint
run: npm run lint
- name: Test
# Integration tests use an in-process PGlite database, so no service
# container is needed — the suite runs standalone.
run: npm test
- name: Build
run: npm run build