Skip to content

Merge pull request #125 from CS3219-AY2324S1/matching-ws #534

Merge pull request #125 from CS3219-AY2324S1/matching-ws

Merge pull request #125 from CS3219-AY2324S1/matching-ws #534

Workflow file for this run

name: backend-ci
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Backend Tests
runs-on: ubuntu-latest
strategy:
matrix:
commands: ['format:ci', 'lint:ci', 'build:ci', 'test']
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: Run backend tests
run: cd backend && yarn run ${{ matrix.commands }}
- name: Stop containers
if: always()
run: cd backend && docker compose -f ./docker-compose.test.yml --env-file=.env.test down