Skip to content

feat: Neon database migration & Family History feature (#5) #19

feat: Neon database migration & Family History feature (#5)

feat: Neon database migration & Family History feature (#5) #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgresql://postgres:password@localhost:5432/evernest"
AUTH_SECRET: "dummy_secret_for_test"
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: evernest
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Generate Prisma Client
run: npx prisma generate
- name: Lint
run: npm run lint
- name: Type Check
run: npx tsc --noEmit
- name: Run Tests
run: npm run test