From 762355b2b27a75199b120dc13c77e9b571149bec Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Fri, 12 Apr 2024 13:04:30 -0400 Subject: [PATCH] Store molecule debug output to github artifacts Related to https://github.com/ansible/awx-operator/pull/1823 --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2d205a1ddae..cb83d9209015 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,8 @@ jobs: awx-operator: runs-on: ubuntu-latest timeout-minutes: 60 + env: + DEBUG_OUTPUT_DIR: /tmp/awx_operator_molecule_test steps: - name: Checkout awx uses: actions/checkout@v3 @@ -111,6 +113,14 @@ jobs: env: AWX_TEST_IMAGE: local/awx AWX_TEST_VERSION: ci + STORE_DEBUG_OUTPUT: true + + - name: Upload debug output + if: failure() + uses: actions/upload-artifact@v3 + with: + name: awx-operator-debug-output + path: ${{ env.DEBUG_OUTPUT_DIR }} collection-sanity: name: awx_collection sanity