From b40da16afd9ced8e101a863381eff3d16e054eba Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Tue, 5 Apr 2022 09:20:00 +0200 Subject: [PATCH] Upload server log after running Cypress tests (#2341) * Upload server log after running Cypress tests * fix typos --- .github/workflows/cypress.yml | 8 +++++++- src/environment.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index a664323afb..7227e98bbf 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -52,7 +52,7 @@ jobs: - name: Start Keycloak Server working-directory: ${{ env.KEYCLOAK_SERVER_BIN }} - run: ./kc.sh start-dev --features=admin2,admin-fine-grained-authz,declarative-user-profile & + run: ./kc.sh start-dev --features=admin2,admin-fine-grained-authz,declarative-user-profile &> ~/server.log & env: KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin @@ -86,3 +86,9 @@ jobs: with: name: cypress-screenshots path: ${{ env.ADMIN_UI_PATH }}/assets/screenshots + + - name: Upload server logs + uses: actions/upload-artifact@v2 + with: + name: server-log + path: ~/server.log diff --git a/src/environment.ts b/src/environment.ts index 7b352424a4..124ba21fb2 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -10,7 +10,7 @@ export type Environment = { resourceUrl: string; /** The name of the master realm. */ masterRealm: string; - /** The version hash of the auth sever. */ + /** The version hash of the auth server. */ resourceVersion: string; /** The hash of the commit the Admin UI was built on, useful to determine the exact version the user is running. */ commitHash: string;