Skip to content

workflows: Add mongodb server to jest workflow for database tests. #12

workflows: Add mongodb server to jest workflow for database tests.

workflows: Add mongodb server to jest workflow for database tests. #12

Workflow file for this run

name: Backend tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
jest-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Use MongoDB in Github Actions
uses: MongoCamp/[email protected]
- name: Install backend dependencies
working-directory: ./backend
run: npm install
- name: Run backend test suite
working-directory: ./backend
run: npm run test