Skip to content

feat(applications): update applications API, docs, and file handling #474

feat(applications): update applications API, docs, and file handling

feat(applications): update applications API, docs, and file handling #474

Workflow file for this run

name: CI/CD
on:
push:
branches: ['**']
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: nti_db_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma client
run: npm run prisma:generate
- name: Build
run: npm run build
- name: Run migrations
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/nti_db_test
NODE_ENV: test
PORT: 3001
run: npm run prisma:migrate:deploy
- name: Run tests
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/nti_db_test
NODE_ENV: test
PORT: 3001
run: npm run test