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: 36 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
quality:
runs-on: ubuntu-latest

env:
DATABASE_URL: postgresql://fake:fake@localhost:5432/fake

Expand All @@ -20,6 +21,7 @@ jobs:
node-version: 22
cache: npm

- run: npm install -g npm@11
- run: npm ci

- name: Generate Prisma client
Expand All @@ -31,8 +33,39 @@ jobs:
- name: Type-check
run: npm run typecheck

- name: Test
run: npm test -- --passWithNoTests

- name: Build
run: npm run build

test:
runs-on: ubuntu-latest
needs: quality

env:
DATABASE_URL: postgresql://fake:fake@localhost:5432/fake
JWT_SECRET: ci-test-jwt-secret-at-least-32-chars!
IP_HASH_SALT: ci-test-ip-hash-salt
REDIS_URL: redis://localhost:6379
NODE_ENV: test

services:
redis:
image: redis:7-alpine
ports:
- 6379:6379

steps:
- uses: actions/checkout@v4

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

- run: npm install -g npm@11
- run: npm ci

- name: Generate Prisma client
run: npx prisma generate

- name: Test
run: npm test
Loading
Loading