Skip to content

Commit

Permalink
Collect docker logs on mediator integration testing failure
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <[email protected]>
  • Loading branch information
Patrik-Stas committed Nov 13, 2023
1 parent 266ee29 commit 0b53ff4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/mediator.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

test-integration-mediator:
runs-on: ubuntu-22.04
services:
services:
mysql:
image: mysql:latest
env:
Expand All @@ -53,4 +53,9 @@ jobs:
- name: Setup database
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source agents/rust/mediator/mediation/migrations
- name: "Run mediator integration tests"
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture;
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture;
- name: "Collect docker logs on failure"
if: failure()
uses: ./.github/actions/upload-docker-logs
with:
name: "docker-services-${{ github.job }}"

0 comments on commit 0b53ff4

Please sign in to comment.