Upload server log after running Cypress tests (#2341)
* Upload server log after running Cypress tests * fix typos
This commit is contained in:
parent
e44103dda5
commit
b40da16afd
2 changed files with 8 additions and 2 deletions
8
.github/workflows/cypress.yml
vendored
8
.github/workflows/cypress.yml
vendored
|
@ -52,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
- name: Start Keycloak Server
|
- name: Start Keycloak Server
|
||||||
working-directory: ${{ env.KEYCLOAK_SERVER_BIN }}
|
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:
|
env:
|
||||||
KEYCLOAK_ADMIN: admin
|
KEYCLOAK_ADMIN: admin
|
||||||
KEYCLOAK_ADMIN_PASSWORD: admin
|
KEYCLOAK_ADMIN_PASSWORD: admin
|
||||||
|
@ -86,3 +86,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: cypress-screenshots
|
name: cypress-screenshots
|
||||||
path: ${{ env.ADMIN_UI_PATH }}/assets/screenshots
|
path: ${{ env.ADMIN_UI_PATH }}/assets/screenshots
|
||||||
|
|
||||||
|
- name: Upload server logs
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: server-log
|
||||||
|
path: ~/server.log
|
||||||
|
|
|
@ -10,7 +10,7 @@ export type Environment = {
|
||||||
resourceUrl: string;
|
resourceUrl: string;
|
||||||
/** The name of the master realm. */
|
/** The name of the master realm. */
|
||||||
masterRealm: string;
|
masterRealm: string;
|
||||||
/** The version hash of the auth sever. */
|
/** The version hash of the auth server. */
|
||||||
resourceVersion: string;
|
resourceVersion: string;
|
||||||
/** The hash of the commit the Admin UI was built on, useful to determine the exact version the user is running. */
|
/** The hash of the commit the Admin UI was built on, useful to determine the exact version the user is running. */
|
||||||
commitHash: string;
|
commitHash: string;
|
||||||
|
|
Loading…
Reference in a new issue