Merge pull request #30 from MauAgendar/luisgmunhoz-patch-5 #25
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: Automated Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build and run Docker containers | |
run: docker compose -f docker-compose.test.yml up -d | |
- name: Wait for services to start | |
run: docker compose -f docker-compose.test.yml ps | |
- name: Install dependencies | |
run: cd ./auth/src && npm install | |
- name: Run tests | |
run: cd ./auth/src && npm run test | |
- name: Stop and remove Docker containers | |
run: docker-compose -f docker-compose.test.yml down |