KEYCLOAK-16147 KEYCLOAK-16148 Add crossdc tests to GitHub Actions

This commit is contained in:
Martin Kanis 2020-11-04 17:32:25 +01:00 committed by Hynek Mlnařík
parent 6c1f92bee3
commit 7b5fdc9c0d

View file

@ -67,6 +67,35 @@ jobs:
- name: Run base tests - name: Run base tests
run: mvn install -B -Pauth-server-wildfly -f testsuite/integration-arquillian/tests/base/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]} run: mvn install -B -Pauth-server-wildfly -f testsuite/integration-arquillian/tests/base/pom.xml | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
test-crossdc:
name: CrossDC Tests
needs: build
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx1024m
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- 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 -nsu -Pauth-servers-crossdc-jboss,auth-server-wildfly,cache-server-infinispan,app-server-wildfly -DskipTests
- name: Run git diff
run: echo "GIT_DIFF=$( git diff --name-only HEAD^ | egrep -ic 'crossdc|infinispan' )" >> $GITHUB_ENV;
- name: Run crossdc-server and crossdc-adapter tests
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
run: mvn clean install -B -nsu -f testsuite/integration-arquillian/tests/base/pom.xml -Pcache-server-infinispan,auth-servers-crossdc-jboss,auth-server-wildfly "-Dtest=org.keycloak.testsuite.crossdc.**.*,org.keycloak.testsuite.adapter.**.crossdc.**.*" | misc/log/trimmer.sh; exit ${PIPESTATUS[0]}
test-undertow-map: test-undertow-map:
name: Test undertow - map provider name: Test undertow - map provider
needs: build needs: build