From 2bb0447334cc358518cd7b4fd34e6e28748fa628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Tue, 6 Feb 2024 16:36:06 +0100 Subject: [PATCH] feat(code-coverage): Print Postgres container logs --- .github/workflows/code-coverage.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/code-coverage.yaml b/.github/workflows/code-coverage.yaml index 07f3a2fe..a74c4d49 100644 --- a/.github/workflows/code-coverage.yaml +++ b/.github/workflows/code-coverage.yaml @@ -178,6 +178,18 @@ jobs: name: coverage-test-failures-postgres path: ${{ runner.temp }}/package + - name: Collect docker logs + uses: jwalton/gh-docker-logs@v1 + with: + dest: './logs-docs' + + - name: Check docker logs for PostgreSQL errors + if: always() + run: | + ## -------------------------------------------------------------------- + logs=$(find ${{ runner.workspace }}/logs-docs/ -name 'postgres*.log') + + cat $logs code-coverage-mssql: name: 🧪 Tests (SQL Server 2019)