Skip to content
Open
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
876 changes: 438 additions & 438 deletions .env.example

Large diffs are not rendered by default.

132 changes: 66 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: CI Pipeline

on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]

jobs:
migration-policy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Verify migration layout and schema drift
run: npx tsx scripts/check-migrations.ts
env:
CHECKSUM_CI_SKIP_MISSING: "1"

build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Typecheck (application sources)
run: npx tsc -p tsconfig.build.json --noEmit
- name: Build
run: npm run build
- name: Verify build artifacts
run: test -f dist/src/index.js
- name: Test
run: npm test
env:
NODE_ENV: test
- name: Build Vercel bundle
run: npm run build:vercel
- name: Smoke test Vercel bundle
run: node scripts/smoke-vercel-bundle.mjs

openapi-compat:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Check OpenAPI backward compatibility
run: |
git fetch origin ${{ github.base_ref }}
./node_modules/.bin/optic diff docs/openapi.json --base FETCH_HEAD --check
name: CI Pipeline
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
jobs:
migration-policy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Verify migration layout and schema drift
run: npx tsx scripts/check-migrations.ts
env:
CHECKSUM_CI_SKIP_MISSING: "1"
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Generate Prisma client
run: npx prisma generate
- name: Typecheck (application sources)
run: npx tsc -p tsconfig.build.json --noEmit
- name: Build
run: npm run build
- name: Verify build artifacts
run: test -f dist/src/index.js
- name: Test
run: npm test
env:
NODE_ENV: test
- name: Build Vercel bundle
run: npm run build:vercel
- name: Smoke test Vercel bundle
run: node scripts/smoke-vercel-bundle.mjs
openapi-compat:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install locked dependencies
run: npm ci
- name: Check OpenAPI backward compatibility
run: |
git fetch origin ${{ github.base_ref }}
./node_modules/.bin/optic diff docs/openapi.json --base FETCH_HEAD --check
47 changes: 23 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
node_modules
dist
*.local
.DS_Store
.env
.env.*
!.env.example
*.log
package-lock.json

/src/generated/prisma
/.idea

# Database
database.db
database.db-*
coverage/

!.env.example
.aider*
.vercel

# Vercel bundle output
/deploy
node_modules
dist
*.local
.DS_Store
!.env.example
*.log
package-lock.json

/src/generated/prisma
/.idea

# Database
database.db
database.db-*
coverage/

!.env.example
.aider*
.vercel

# Vercel bundle output
/deploy
config.bat
Loading