feat: move to V2
CI / build-and-test (push) Canceled after 0s

This commit is contained in:
2026-10-29 11:21:52 +01:00
parent 6342b8451e
commit 314717ba3a
244 changed files with 11615 additions and 15292 deletions
+14 -12
View File
@@ -12,7 +12,7 @@ jobs:
services:
postgres:
image: postgres:16-alpine
image: postgres:17-alpine
env:
POSTGRES_DB: kooltap
POSTGRES_USER: kooltap
@@ -32,38 +32,40 @@ jobs:
steps:
- uses: actions/checkout@v4
# The version comes from packageManager in package.json
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
node-version: 24
cache: pnpm
# Also generates the Prisma client
- run: pnpm install --frozen-lockfile
- name: Generate Prisma client
run: cd apps/api && npx prisma generate
- name: Build shared package
run: pnpm --filter @kooltap/shared run build
- name: TypeScript check
- name: Typecheck
run: pnpm typecheck
# Uses the still-empty database as shadow database, so it must run before the migrations
- name: Check schema matches migrations
run: cd apps/api && npx prisma migrate diff --from-migrations prisma/migrations --to-schema-datamodel prisma/schema.prisma --shadow-database-url "$DATABASE_URL" --exit-code
working-directory: apps/api
run: SHADOW_DATABASE_URL="$DATABASE_URL" npx prisma migrate diff --from-migrations prisma/migrations --to-schema prisma/schema.prisma --exit-code
- name: Apply migrations
run: cd apps/api && npx prisma migrate deploy
working-directory: apps/api
run: npx prisma migrate deploy
- name: Unit tests
run: pnpm test
- name: E2E tests
- name: End-to-end tests
run: pnpm test:e2e
- name: Build
run: pnpm build
- name: Terminal protocol JSON Schema
run: pnpm --filter @kooltap/shared run schema