name: CI on: push: branches: [main] pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true env: # Prisma needs a connection string to generate the client; no database is # contacted during lint, typecheck, test or build. DATABASE_URL: postgresql://postgres:postgres@localhost:5432/superlist?schema=public BETTER_AUTH_SECRET: ci-only-secret-not-used-at-build-time BETTER_AUTH_URL: http://localhost:4100 CORS_ORIGIN: http://localhost:7153 VITE_API_URL: http://localhost:4100 jobs: verify: name: Verify runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 with: bun-version: 1.4.0 # The Prisma CLI runs on Node. - uses: actions/setup-node@v4 with: node-version: 22 - name: Install dependencies run: bun install --frozen-lockfile - name: Generate Prisma client run: bun run db:generate - name: Lint and format check run: bun run lint:ci - name: Typecheck run: bun run typecheck - name: Test run: bun run test - name: Build run: bun run build