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
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@ jobs:
- name: Validate Prisma schema
run: npx prisma validate

test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
env:
# Dummy value so loading prisma.config.ts never fails on a missing var.
DATABASE_URL: postgresql://ci:ci@localhost:5432/ci
steps:
- uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Unit tests
run: npm test

build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,6 +95,6 @@ jobs:
ci:
name: ci
runs-on: ubuntu-latest
needs: [quality, build]
needs: [quality, test, build]
steps:
- run: echo "Quality and build gates passed."
- run: echo "Quality, test and build gates passed."
Loading
Loading