diff --git a/.github/workflows/mediator.pr.yml b/.github/workflows/mediator.pr.yml index e93633ea6d..856110b1cb 100644 --- a/.github/workflows/mediator.pr.yml +++ b/.github/workflows/mediator.pr.yml @@ -26,7 +26,7 @@ jobs: test-integration-mediator: runs-on: ubuntu-22.04 - services: + services: mysql: image: mysql:latest env: @@ -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; \ No newline at end of file + 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 }}"