From 7b5fdc9c0d81ba7d05498e5aa9accb2918e90406 Mon Sep 17 00:00:00 2001 From: Martin Kanis Date: Wed, 4 Nov 2020 17:32:25 +0100 Subject: [PATCH] KEYCLOAK-16147 KEYCLOAK-16148 Add crossdc tests to GitHub Actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b09ffb67ea..5dba51fe0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,35 @@ jobs: - 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]} + 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: name: Test undertow - map provider needs: build