update to use the new flags #1737
Workflow file for this run
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
name: Keycloak Integration CI | |
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 | |