Skip to content

feat: initial frontend implementation and backend refinements #10

feat: initial frontend implementation and backend refinements

feat: initial frontend implementation and backend refinements #10

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- name: Install Dependencies
working-directory: ./backend
run: npm install
- name: Generate Prisma Client
working-directory: ./backend
env:
DATABASE_URL: "postgresql://postgres:password@localhost:5432/dragonsploit"
run: npx prisma generate
- name: Build
working-directory: ./backend
run: npm run build
- name: Test
working-directory: ./backend
run: npm test
build-frontend:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install Dependencies
working-directory: ./frontend
run: npm install
- name: Build
working-directory: ./frontend
run: npm run build