Skip to content

Fix db url

Fix db url #8

Workflow file for this run

name: CI
on: [push]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
container: node:20.11.0-bookworm
services:
postgres:
image: postgres:15.5
env:
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install Dependencies
run: npm ci
- name: Check Formatting
run: npm run format:check
- name: Run ESLint
run: npm run lint --workspaces
- name: Initialize database, generate Prisma client
run: cd server; npx prisma migrate reset
env:
DATABASE_URL: postgresql://postgres@postgres/app
- name: Run Tests
run: npm test
env:
DATABASE_URL: postgresql://postgres@postgres/app