From 1c0366745c2ec69b046f919c4b31909c0f93783a Mon Sep 17 00:00:00 2001 From: Jonathan Dance Date: Wed, 11 Oct 2023 19:50:09 -0500 Subject: [PATCH] ci: tgz logs on failure --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2984127..b1ec9f9f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -106,12 +106,16 @@ jobs: TEST_AWS_REGION: us-east-1 TEST_AWS_S3_BUCKET: hydra-test-fixtures run: make postgres_pull_upgrade_image postgres_acceptance_test + - name: tgz container logs + if: failure() + run: | + tar -czf /test_results.tar.gz ${{ env.TEST_ARTIFACT_DIR }} - name: Upload test container logs if: failure() uses: actions/upload-artifact@v3 with: name: postgres_${{ matrix.postgres }}_container_logs - path: ${{ env.TEST_ARTIFACT_DIR }} + path: /test_results.tar.gz retention-days: 7 - name: Bake multi-platform Postgres if: github.ref == 'refs/heads/main'