From 628512e401c589902f220a71d422871fbfd43633 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 26 Oct 2023 10:26:13 -0400 Subject: [PATCH] stash qg state on run Signed-off-by: Alex Goodman --- .github/actions/quality-gate/action.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/actions/quality-gate/action.yaml b/.github/actions/quality-gate/action.yaml index 501ffcad..359b1834 100644 --- a/.github/actions/quality-gate/action.yaml +++ b/.github/actions/quality-gate/action.yaml @@ -15,6 +15,16 @@ runs: working-directory: tests/quality run: poetry run make capture provider=${{ inputs.provider }} + - name: Archive the provider state (${{ inputs.provider }}) + shell: bash + run: tar -czvf qg-capture-state-${{ inputs.provider }}.tar.gz -C tests/quality .yardstick .oras-cache + + - name: Upload the provider state archive (${{ inputs.provider }}) + uses: actions/upload-artifact@v3 + with: + name: qg-capture-state-${{ inputs.provider }} + path: qg-capture-state-${{ inputs.provider }}.tar.gz + - name: Validate provider results shell: bash working-directory: tests/quality