Upload Keycloak server logs when running Cypress (#3804)
This commit is contained in:
parent
465b3c4a26
commit
b788118ed4
1 changed files with 8 additions and 2 deletions
10
.github/workflows/cypress.yml
vendored
10
.github/workflows/cypress.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue