mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-16 20:15:46 -06:00
Enable unit tests for keycloak-admin-client
Closes #44268 Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
37
.github/workflows/js-ci.yml
vendored
37
.github/workflows/js-ci.yml
vendored
@@ -260,6 +260,42 @@ jobs:
|
||||
name: admin-ui-server-log-${{ matrix.browser }}
|
||||
path: ~/server.log
|
||||
|
||||
keycloak-admin-client:
|
||||
name: Keycloak Admin Client
|
||||
needs:
|
||||
- conditional
|
||||
- build-keycloak
|
||||
if: needs.conditional.outputs.js-ci == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
WORKSPACE: "@keycloak/keycloak-admin-client"
|
||||
RETRY_COUNT: 3
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- name: Download Keycloak server
|
||||
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||
with:
|
||||
name: keycloak
|
||||
|
||||
- name: Setup Java
|
||||
uses: ./.github/actions/java-setup
|
||||
|
||||
- name: Start Keycloak server
|
||||
run: |
|
||||
tar xfvz keycloak-999.0.0-SNAPSHOT.tar.gz
|
||||
keycloak-999.0.0-SNAPSHOT/bin/kc.sh start-dev --http-port 8180 --features transient-users,oid4vc-vci,declarative-ui,quick-theme,spiffe,kubernetes-service-accounts,workflows,client-auth-federated,jwt-authorization-grant &> ~/server.log &
|
||||
curl --connect-timeout 5 --max-time 10 --retry 10 --retry-all-errors --retry-delay 10 --retry-max-time 120 -s -o /dev/null http://127.0.0.1:8180
|
||||
env:
|
||||
KC_BOOTSTRAP_ADMIN_USERNAME: admin
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
|
||||
|
||||
- uses: ./.github/actions/pnpm-setup
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm --fail-if-no-match --filter ${{ env.WORKSPACE }} run test
|
||||
working-directory: js
|
||||
|
||||
check:
|
||||
name: Status Check - Keycloak JavaScript CI
|
||||
if: always()
|
||||
@@ -272,6 +308,7 @@ jobs:
|
||||
- account-ui-e2e
|
||||
- admin-ui
|
||||
- admin-ui-e2e
|
||||
- keycloak-admin-client
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
Reference in New Issue
Block a user