Skip to content

fix: normalize threat zone colors from any LLM-produced format #73

fix: normalize threat zone colors from any LLM-produced format

fix: normalize threat zone colors from any LLM-produced format #73

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, staging]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: "22"
jobs:
validate:
name: Build & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type-check
run: npx tsc --noEmit
- name: Build
run: npm run build
env:
# Provide dummy env vars so Next.js build succeeds without real secrets
DATABASE_URL: "postgresql://dummy:dummy@localhost:5432/dummy"
NEXT_PUBLIC_SUPABASE_URL: "https://dummy.supabase.co"
NEXT_PUBLIC_SUPABASE_ANON_KEY: "dummy"
migration-check:
name: Migration Status
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg17
env:
POSTGRES_USER: pharos
POSTGRES_PASSWORD: pharos
POSTGRES_DB: pharos
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U pharos"
--health-interval=5s
--health-timeout=3s
--health-retries=5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Apply migrations to clean DB
run: npx prisma migrate deploy
env:
DATABASE_URL: "postgresql://pharos:pharos@localhost:5432/pharos?schema=public"
- name: Check for schema drift
run: npx prisma migrate diff --from-migrations ./prisma/migrations --to-schema ./prisma/schema.prisma --exit-code
env:
DATABASE_URL: "postgresql://pharos:pharos@localhost:5432/pharos?schema=public"
SHADOW_DATABASE_URL: "postgresql://pharos:pharos@localhost:5432/postgres?schema=public"