Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
check:
runs-on: ubuntu-latest

# Use a throwaway SQLite file. The build prerenders / which queries the DB,
# so we need a real (empty) database — not just a generated Prisma client.
env:
DATABASE_URL: file:./prisma/ci.db

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Apply Prisma migrations
run: npx prisma migrate deploy

- name: Lint
run: npm run lint

- name: Test
run: npm test

- name: Build
run: npm run build
Loading
Loading