Skip to content

Initialize Prisma, including migrations, testing and DB connections #7

Initialize Prisma, including migrations, testing and DB connections

Initialize Prisma, including migrations, testing and DB connections #7

Workflow file for this run

name: Build and Test Backend
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
defaults:
run:
working-directory: ./backend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 23
- name: Clean install dependencies
run: npm ci --legacy-peer-deps
- name: Build codebase
run: npm run build
test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 23
- name: Clean install dependencies
run: npm ci --legacy-peer-deps
- name: Run tests
run: npm test