From 5c5e92fba9a1b2e1d783a645b98cce7b05216e5f Mon Sep 17 00:00:00 2001 From: Martin Medek Date: Mon, 18 Nov 2024 10:08:19 +0100 Subject: [PATCH] moved printing event log after tests --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83bb4e3..6d6d07e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,10 +135,6 @@ jobs: dotnet build bin\Debug\net8.0\playwright.ps1 install --with-deps - - name: Print event log - run: | - sqlcmd -S "${{ env.SQLSERVER_NAME}}" -U '${{ env.DB_USER}}' -P '${{ env.DB_PASSWORD }}' -d "${{ env.DB_DATABASE }}" -Q "SELECT * FROM CMS_EventLog" - - name: Prepare test.runsettings working-directory: ${{ env.UMT_DIR }} run: | @@ -181,6 +177,11 @@ jobs: mkdir reports dotnet test --settings:test.runsettings --logger:"html;LogFileName=${{ env.UMT_DIR }}\reports\logFile.html" + - name: Print event log + if: always() + run: | + sqlcmd -S "${{ env.SQLSERVER_NAME}}" -U '${{ env.DB_USER}}' -P '${{ env.DB_PASSWORD }}' -d "${{ env.DB_DATABASE }}" -Q "SELECT * FROM CMS_EventLog" + - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: