name: Validate on: push: branches: [main] pull_request: branches: [main] jobs: validate: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 with: version: 9.15.0 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version-file: '.node-version' cache: pnpm - name: Install dependencies run: pnpm install --frozen-lockfile - name: Run validation (svelte-check + build) # Stub env so the build-time analyse step can import src/lib/server/env.ts # without connecting to anything. Values match the Zod schema's shape only. env: DATABASE_URL: postgres://ci:ci@localhost:5432/ci SESSION_SECRET: 0000000000000000000000000000000000000000000000000000000000000000 STORAGE_SIGNING_SECRET: 0000000000000000000000000000000000000000000000000000000000000000 PUBLIC_BASE_URL: http://localhost:5173 run: pnpm run validate