From 8797a7340b15fa70a04364319a545be425d4ea0a Mon Sep 17 00:00:00 2001 From: Naomi Kirby Date: Thu, 1 Aug 2024 13:47:50 -0700 Subject: [PATCH] Fetch autograph logs in Github actions integration tests (#938) --- .github/workflows/tests.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 51fe9c1d2..3b5b9eb5d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -118,3 +118,13 @@ jobs: - name: Running ${{ matrix.testcase }} shell: bash run: docker compose -f tools/autograph-client/integration-tests.yml run ${{ matrix.testcase }} + + - name: Fetching autograph logs + shell: bash + if: ${{ always() }} + run: | + if echo "${{ matrix.testcase }}" | grep -q hsm; then + docker compose -f tools/autograph-client/integration-tests.yml logs app-hsm + else + docker compose -f tools/autograph-client/integration-tests.yml logs app + fi