Skip to content

Merge pull request #12 from CS3219-AY2324S1/backend-monorepo-mode #17

Merge pull request #12 from CS3219-AY2324S1/backend-monorepo-mode

Merge pull request #12 from CS3219-AY2324S1/backend-monorepo-mode #17

name: ci-backend-test
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Backend Tests
runs-on: ubuntu-latest
strategy:
matrix:
commands: ['format:ci', 'lint:ci', build, 'test:ci']
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2-beta
with:
node-version: '18'
- name: Install backend dependencies
run: cd backend; yarn install --frozen-lockfile;
- name: Start microservices
run: cd backend; yarn start:ci;
- name: Run backend tests
run: cd backend; yarn run ${{ matrix.commands }}