Add more tests and make it better #9
Workflow file for this run
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: Run Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Docker Compose | |
run: docker-compose -f docker-compose.test.yml build | |
- name: Run and Monitor Tests | |
run: | | |
docker-compose -f docker-compose.test.yml up -d | |
docker-compose -f docker-compose.test.yml logs -f app | (grep -m 1 "exited with code 0" && docker-compose -f docker-compose.test.yml down) |