Skip to content

Merge pull request #848 from UofT-Frosh-Orientation/fixing-backend-tests #309

Merge pull request #848 from UofT-Frosh-Orientation/fixing-backend-tests

Merge pull request #848 from UofT-Frosh-Orientation/fixing-backend-tests #309

Workflow file for this run

name: Backend Tests
on:
push:
paths:
- server/**
pull_request:
paths:
- server/**
jobs:
test_backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.5.3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install docker-compose -y
- name: Start Docker
run: docker-compose -f docker-compose.test.yml up --build -d
- name: Run Tests
run: cd server && yarn install && yarn test:actions