KEYCLOAK-18023 GH Actions unable to build KC
This commit is contained in:
parent
e318d24301
commit
f9d4f3c7c2
1 changed files with 30 additions and 0 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -2,6 +2,10 @@ name: Keycloak CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -11,6 +15,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
@ -52,6 +59,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
@ -91,6 +101,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
@ -155,6 +168,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
|
|
||||||
- name: Run base tests
|
- name: Run base tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -217,6 +233,10 @@ jobs:
|
||||||
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
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
|
- name: Run cluster tests
|
||||||
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
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 }}
|
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
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
|
- name: Cache Maven packages
|
||||||
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
if: ${{ github.event_name != 'pull_request' || env.GIT_DIFF != 0 }}
|
||||||
|
@ -323,6 +347,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
- name: Run Quarkus cluster tests
|
- name: Run Quarkus cluster tests
|
||||||
run: |
|
run: |
|
||||||
echo '::group::Compiling testsuite'
|
echo '::group::Compiling testsuite'
|
||||||
|
@ -359,6 +386,9 @@ jobs:
|
||||||
- uses: actions/setup-java@v1
|
- uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
- uses: whelk-io/maven-settings-xml-action@v15
|
||||||
|
with:
|
||||||
|
mirrors: ${{ env.MVN_MIRRORS }}
|
||||||
|
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|
Loading…
Reference in a new issue