2020-06-17 12:53:11 +00:00
|
|
|
name: Keycloak.X CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
2020-07-09 15:28:22 +00:00
|
|
|
java-version: 1.8
|
2020-06-17 12:53:11 +00:00
|
|
|
- name: Cache Maven packages
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.m2/repository
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
|
|
|
- name: Build
|
|
|
|
run: mvn clean install -B -e -DskipTests -Pquarkus,distribution
|
|
|
|
- name: Tar Maven Repo
|
|
|
|
shell: bash
|
|
|
|
run: tar -czvf maven-repo.tgz -C ~ .m2/repository
|
|
|
|
- name: Persist Maven Repo
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: maven-repo
|
|
|
|
path: maven-repo.tgz
|
|
|
|
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
MAVEN_OPTS: -Xmx2048m
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
2020-07-09 15:28:22 +00:00
|
|
|
java-version: 1.8
|
2020-06-17 12:53:11 +00:00
|
|
|
- name: Download Maven Repo
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: maven-repo
|
|
|
|
path: .
|
|
|
|
- name: Extract Maven Repo
|
|
|
|
shell: bash
|
|
|
|
run: tar -xzvf maven-repo.tgz -C ~
|
2020-10-09 15:03:32 +00:00
|
|
|
- name: Run Quarkus unit tests
|
|
|
|
run: mvn clean install -B -Pquarkus -f quarkus/pom.xml
|
2020-06-17 12:53:11 +00:00
|
|
|
- name: Build testsuite
|
|
|
|
run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml
|
|
|
|
- name: Run base tests
|
2020-07-15 12:40:10 +00:00
|
|
|
run: mvn clean install -B -Pquarkus,auth-server-quarkus -f testsuite/integration-arquillian/tests/base/pom.xml -Dtest='!org.keycloak.testsuite.adapter.**,!**.crossdc.**,!**.cluster.**' | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
|
|
|
|
test-adapter:
|
|
|
|
name: Test Adapter
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
MAVEN_OPTS: -Xmx1024m
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
- name: Download Maven Repo
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: maven-repo
|
|
|
|
path: .
|
|
|
|
- name: Extract Maven Repo
|
|
|
|
shell: bash
|
|
|
|
run: tar -xzvf maven-repo.tgz -C ~
|
|
|
|
- name: Build testsuite
|
|
|
|
run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml
|
|
|
|
- name: Run adapter tests
|
|
|
|
run: mvn clean install -B -Pquarkus,auth-server-quarkus -f testsuite/integration-arquillian/tests/base/pom.xml -Dtest=org.keycloak.testsuite.adapter.** | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
|
2020-06-18 20:18:49 +00:00
|
|
|
test-cluster:
|
|
|
|
name: Test Clustering
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
MAVEN_OPTS: -Xmx2048m
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
2020-07-09 15:28:22 +00:00
|
|
|
java-version: 1.8
|
2020-06-18 20:18:49 +00:00
|
|
|
- name: Download Maven Repo
|
|
|
|
uses: actions/download-artifact@v1
|
|
|
|
with:
|
|
|
|
name: maven-repo
|
|
|
|
path: .
|
|
|
|
- name: Extract Maven Repo
|
|
|
|
shell: bash
|
|
|
|
run: tar -xzvf maven-repo.tgz -C ~
|
|
|
|
- name: Build testsuite
|
|
|
|
run: mvn clean install -B -Pquarkus,auth-server-quarkus -DskipTests -f testsuite/pom.xml
|
|
|
|
- name: Run cluster tests
|
|
|
|
run: mvn clean install -B -Pauth-server-cluster-quarkus -Dsession.cache.owners=2 -Dtest=**.cluster.** -f testsuite/integration-arquillian/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
|