Skip to content

Added tests for backend #2

Added tests for backend

Added tests for backend #2

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
services:
mongo:
image: mongo:latest
ports:
- 27017:27017
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install backend dependencies
working-directory: ./backend
run: npm install
- name: Run backend tests
working-directory: ./backend
run: npm test
- name: Install frontend dependencies
working-directory: ./frontend
run: npm install
- name: Run frontend tests
working-directory: ./frontend
run: npm test
- name: Build frontend
working-directory: ./frontend
run: npm run build