From 10158deb3ea46746210b40986176bf2fbc51b915 Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Wed, 8 Nov 2023 10:23:07 -0800 Subject: [PATCH] Update condition Signed-off-by: Aaron Crawfis --- .github/workflows/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1905fde2..067161b3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -228,6 +228,7 @@ jobs: run: rad deploy ${{ matrix.path }} ${{ matrix.args }} - name: Wait for all pods to be ready if: steps.gen-id.outputs.RUN_TEST == 'true' + id: wait-for-pods run: | namespace="default-${{ matrix.app }}" label="radapp.io/application=${{ matrix.app }}" @@ -258,7 +259,7 @@ jobs: # Handle failures - name: Get Pod logs for failed tests id: get-pod-logs - if: failure() && steps.run-playwright-test.outcome == 'failure' + if: failure() && (steps.run-playwright-test.outcome == 'failure' || steps.wait-for-pods.outcome == 'failure') run: | # Create pod-logs directory mkdir -p playwright/pod-logs/${{ matrix.name }}