GitHub workflow pr #5
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 PR | |
on: | |
pull_request: | |
branches: | |
- development | |
- hotfix | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
jobs: | |
test: | |
if: github.event.pull_request.draft == false | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build container for tests | |
run: docker compose -f ./.ci/docker-compose.yml -p ci build | |
- name: Launch containers to run tests | |
run: | | |
docker compose -f ./.ci/docker-compose.yml -p ci up -d store queue sut | |
docker logs -f ci-sut-1 | |
# - name: Check failure | |
# if: $ {{ docker wait ci-sut-1 }} != 0 | |
# run: exit 1 |