Upload Keycloak server logs when running Cypress (#3804)

This commit is contained in:
Jon Koops 2022-11-18 18:41:08 +01:00 committed by GitHub
parent 465b3c4a26
commit b788118ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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