Align maven parameters across GitHub actions (#25117)

Closes #25116

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2023-12-05 08:30:11 +01:00 committed by GitHub
parent 1eadaba084
commit 672cef89d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 10 deletions

View file

@ -61,8 +61,7 @@ runs:
shell: bash
# By using "dependency:resolve", it will download all dependencies used in later stages for running the tests
run: |
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
./mvnw install dependency:resolve -nsu -V -B -e -DskipTests -DskipExamples $MVN_HTTP_CONFIG ${{ env.MVN_PROFILES}}
./mvnw install dependency:resolve -V -e -DskipTests -DskipExamples ${{ env.MVN_PROFILES}}
- id: compress-keycloak-maven-repository
name: Compress Keycloak Maven artifacts

View file

@ -9,6 +9,9 @@ on:
branches: [main]
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
concurrency:
# Only cancel jobs for PR updates
group: codeql-analysis-${{ github.ref }}

View file

@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
concurrency:
# Only cancel jobs for PR updates
group: documentation-${{ github.ref }}
@ -52,8 +55,7 @@ jobs:
name: Build and verify Keycloak documentation
shell: bash
run: |
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
./mvnw install -Dtest=!ExternalLinksTest -am -pl docs/documentation/tests,docs/documentation/dist -nsu -B -e $MVN_HTTP_CONFIG -Pdocumentation
./mvnw install -Dtest=!ExternalLinksTest -am -pl docs/documentation/tests,docs/documentation/dist -e -Pdocumentation
- id: upload-keycloak-documentation
name: Upload Keycloak documentation
@ -83,8 +85,7 @@ jobs:
name: Build and verify Keycloak documentation
shell: bash
run: |
MVN_HTTP_CONFIG="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120"
./mvnw install -Dtest=ExternalLinksTest -am -pl docs/documentation/tests -nsu -B -e -Pdocumentation $MVN_HTTP_CONFIG
./mvnw install -Dtest=ExternalLinksTest -am -pl docs/documentation/tests -e -Pdocumentation
check:
name: Status Check - Keycloak Documentation

View file

@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
concurrency:
# Only cancel jobs for PR updates
group: guides-${{ github.ref }}

View file

@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
concurrency:
# Only cancel jobs for PR updates
group: js-ci-${{ github.ref }}
@ -49,7 +52,7 @@ jobs:
- name: Build Keycloak
run: |
./mvnw clean install --batch-mode --errors -DskipTests -DskipTestsuite -DskipExamples -Pdistribution
./mvnw clean install --errors -DskipTests -DskipTestsuite -DskipExamples -Pdistribution
mv ./quarkus/dist/target/keycloak-999.0.0-SNAPSHOT.tar.gz ./keycloak-999.0.0-SNAPSHOT.tar.gz
- name: Upload Keycloak dist

View file

@ -9,6 +9,7 @@ on:
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
MINIKUBE_VERSION: v1.31.2
KUBERNETES_VERSION: v1.24.17 # OCP 4.11
@ -88,7 +89,7 @@ jobs:
- name: Test operator running locally
run: |
./mvnw install --batch-mode -Poperator -pl :keycloak-operator -am \
./mvnw install -Poperator -pl :keycloak-operator -am \
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
-Doperator.keycloak.image=keycloak:${{ env.version_local }} \
-Dtest.operator.custom.image=custom-keycloak:${{ env.version_local }} \
@ -134,7 +135,7 @@ jobs:
- name: Test operator running in cluster
run: |
eval $(minikube -p minikube docker-env)
./mvnw install --batch-mode -Poperator -pl :keycloak-operator -am \
./mvnw install -Poperator -pl :keycloak-operator -am \
-Dquarkus.container-image.build=true \
-Dquarkus.kubernetes.image-pull-policy=IfNotPresent \
-Doperator.keycloak.image=keycloak:${{ env.version_remote }} \

View file

@ -3,6 +3,9 @@ name: Snyk
on:
workflow_dispatch:
env:
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
defaults:
run:
shell: bash
@ -34,7 +37,7 @@ jobs:
- name: Check for vulnerabilities in Operator
run: |
./mvnw -Poperator -pl operator -am -DskipTests clean install --batch-mode
./mvnw -Poperator -pl operator -am -DskipTests clean install
snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --sarif-file-output=operator-report.sarif operator
continue-on-error: true
env: