Skip to content

chore(wiki+docs): full wiki INIT + CLAUDE.md derive #35

chore(wiki+docs): full wiki INIT + CLAUDE.md derive

chore(wiki+docs): full wiki INIT + CLAUDE.md derive #35

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma client
run: pnpm exec prisma generate
env:
DATABASE_URL: postgresql://placeholder:placeholder@localhost:5432/placeholder
- name: Typecheck
run: pnpm turbo typecheck
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: ps
POSTGRES_PASSWORD: test
POSTGRES_DB: ps_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate Prisma client
run: pnpm exec prisma generate
env:
DATABASE_URL: postgresql://ps:test@localhost:5432/ps_test
- name: Push schema to test DB
run: pnpm exec prisma db push
env:
DATABASE_URL: postgresql://ps:test@localhost:5432/ps_test
- name: Run tests
run: pnpm turbo test
env:
DATABASE_URL: postgresql://ps:test@localhost:5432/ps_test