From f9d4f3c7c29dff4dec06b88d8acfa07a5356669f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Muzik=C3=A1=C5=99?= Date: Thu, 6 May 2021 12:31:51 +0200 Subject: [PATCH] KEYCLOAK-18023 GH Actions unable to build KC --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5114128886..c9d069e16c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: Keycloak CI on: [push, pull_request] +env: + # workaround for Maven >= 3.8.1 (see KEYCLOAK-17812) + MVN_MIRRORS: '[{ "id": "jboss-public-repository-group-https", "mirrorOf": "jboss-public-repository-group", "url": "https://repository.jboss.org/nexus/content/groups/public/" }]' + jobs: build: name: Build @@ -11,6 +15,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Cache Maven packages id: cache uses: actions/cache@v2 @@ -52,6 +59,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Cache Maven packages uses: actions/cache@v2 with: @@ -91,6 +101,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Cache Maven packages uses: actions/cache@v2 with: @@ -155,6 +168,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Run base tests run: | @@ -217,6 +233,10 @@ jobs: if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Run cluster tests if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} @@ -253,6 +273,10 @@ jobs: if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Cache Maven packages if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }} @@ -323,6 +347,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Run Quarkus cluster tests run: | echo '::group::Compiling testsuite' @@ -359,6 +386,9 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 1.8 + - uses: whelk-io/maven-settings-xml-action@v15 + with: + mirrors: ${{ env.MVN_MIRRORS }} - name: Cache Maven packages uses: actions/cache@v2