From 68c32bdbfb41a1840851501f1039d629914aab4e Mon Sep 17 00:00:00 2001 From: leehk Date: Fri, 18 Apr 2025 21:09:52 +0800 Subject: [PATCH] update --- .github/workflows/template_test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/template_test.yml b/.github/workflows/template_test.yml index dd4b5c2..781d32c 100644 --- a/.github/workflows/template_test.yml +++ b/.github/workflows/template_test.yml @@ -140,6 +140,12 @@ jobs: cat "${{ steps.create_compose.outputs.COMPOSE_FILE_PATH }}" # Print generated compose file (check secrets aren't exposed if public) docker compose -f "${{ steps.create_compose.outputs.COMPOSE_FILE_PATH }}" up -d + - name: Print Service Logs on Failure or Success + if: always() # Always run this step + run: | + echo "Printing final logs from Docker Compose services..." + docker compose -f "${{ steps.create_compose.outputs.COMPOSE_FILE_PATH }}" logs + - name: Wait for Services run: | echo "Waiting 60 seconds for services to initialize..." @@ -234,12 +240,6 @@ jobs: reporter: java-junit # Specify the format token: ${{ secrets.TEST-REPORT }} - - name: Print Service Logs on Failure or Success - if: always() # Always run this step - run: | - echo "Printing final logs from Docker Compose services..." - docker compose -f "${{ steps.create_compose.outputs.COMPOSE_FILE_PATH }}" logs - - name: Docker Compose Down if: always() # Always run cleanup run: |