-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflow to test quickstarts with nightly keycloak/keycloak-cl…
…ient Closes #35439 Signed-off-by: rmartinc <[email protected]>
- Loading branch information
Showing
7 changed files
with
185 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,147 +1,11 @@ | ||
name: Keycloak Integration CI | ||
|
||
on: | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
DEFAULT_JDK_VERSION: 17 | ||
DEFAULT_JDK_DIST: temurin | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Jakarta | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh jakarta | ||
|
||
tests-spring: | ||
name: Spring | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh spring | ||
|
||
tests-nodejs: | ||
name: Node.js | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh nodejs | ||
|
||
tests-js: | ||
name: JavaScript | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh js | ||
|
||
tests-extension: | ||
name: Extension | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh extension | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh extension | ||
|
||
call-ci-workflow: | ||
uses: ./.github/workflows/workflow-ci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Keycloak Integration CI Nightly | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
call-ci-workflow: | ||
uses: ./.github/workflows/workflow-ci.yml | ||
with: | ||
nightly-test: 'true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
name: Reusable Keycloak Integration CI | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
nightly-test: | ||
description: 'if true nightly 999.0.0-SNAPSHOT version is used for keycloak and keycloak-client, otherwise the current versions in pom.xml' | ||
default: 'false' | ||
required: false | ||
type: string | ||
|
||
env: | ||
DEFAULT_JDK_VERSION: 17 | ||
DEFAULT_JDK_DIST: temurin | ||
NIGHTLY_TEST: ${{ inputs.nightly-test }} | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Jakarta | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh jakarta | ||
|
||
tests-spring: | ||
name: Spring | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh spring | ||
|
||
tests-nodejs: | ||
name: Node.js | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh nodejs | ||
|
||
tests-js: | ||
name: JavaScript | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh js | ||
|
||
tests-extension: | ||
name: Extension | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ env.DEFAULT_JDK_DIST }} | ||
java-version: ${{ env.DEFAULT_JDK_VERSION }} | ||
- name: Update maven settings | ||
run: mkdir -p ~/.m2 ; cp .github/maven-settings.xml ~/.m2/ | ||
|
||
- name: Cache Maven repo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
!~/.m2/repository/org/keycloak | ||
key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
||
- name: Get Keycloak | ||
run: .github/scripts/prepare-local-server.sh | ||
|
||
- name: Start Keycloak | ||
run: .github/scripts/start-local-server.sh extension | ||
|
||
- name: Run unit tests | ||
run: .github/scripts/run-tests.sh extension | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters