Merge pull request #848 from UofT-Frosh-Orientation/fixing-backend-tests #309
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |