From b788118ed4df762f78e3492b8eaa5935ac959127 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Fri, 18 Nov 2022 18:41:08 +0100 Subject: [PATCH] Upload Keycloak server logs when running Cypress (#3804) --- .github/workflows/cypress.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 453d77085a..b6ccc4e4bc 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -87,7 +87,7 @@ jobs: strategy: fail-fast: false matrix: - containers: [1, 2, 3, 4, 5] + container: [1, 2, 3, 4, 5] steps: - name: Check out Admin UI uses: actions/checkout@v3 @@ -117,7 +117,7 @@ jobs: - name: Start Keycloak Server run: | tar xfvz keycloak-999-SNAPSHOT.tar.gz - keycloak-999-SNAPSHOT/bin/kc.sh start-dev --features=admin2,admin-fine-grained-authz,declarative-user-profile & + keycloak-999-SNAPSHOT/bin/kc.sh start-dev --features=admin2,admin-fine-grained-authz,declarative-user-profile &> ~/server.log & env: KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin @@ -136,3 +136,9 @@ jobs: CYPRESS_KEYCLOAK_SERVER: http://localhost:8080 CYPRESS_RECORD_KEY: b8f1d15e-eab8-4ee7-8e44-c6d7cd8fc0eb GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload server logs + uses: actions/upload-artifact@v3 + with: + name: server-log-${{ matrix.container }} + path: ~/server.log