Skip to content

Fix Prisma Generate step in workflow #3

Fix Prisma Generate step in workflow

Fix Prisma Generate step in workflow #3

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
backend-job:
name: ExpressJS Backend
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js v21
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: "npm"
- name: Install Dependencies
run: npm ci
working-directory: ./backend
- name: Prisma Generate
run: npx prisma generate
working-directory: ./backend
- name: Build
run: npm run build --if-present
working-directory: ./backend
- name: Lint
run: npm run lint
working-directory: ./backend
- name: Run Tests
run: npm test
working-directory: ./backend
frontend-job:
name: ReactJS Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js v21
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: "npm"
- name: Install Dependencies
run: npm ci
working-directory: ./frontend
- name: Build
run: npm run build --if-present
working-directory: ./frontend
- name: Lint
run: npm run lint
working-directory: ./frontend
- name: Run Tests
run: npm test
working-directory: ./frontend