Add more tests and make it better #13
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: Start services | |
run: docker-compose -f docker-compose.test.yml up --exit-code-from test-api --abort-on-container-exit | |
- name: Debug - Show running containers | |
run: docker ps | |
- name: Monitor logs and shutdown | |
run: 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) |