diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index c88f6c5f927..d8c4c31993c 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -7,14 +7,15 @@ name: "Validate"
on:
pull_request:
push:
- branches-ignore: [ 'main', 'helidon-*.x' ]
+ branches-ignore: [ 'main', 'helidon-*.x', 'release-*' ]
+ tags-ignore: [ '**' ]
workflow_call:
env:
JAVA_VERSION: '21'
JAVA_DISTRO: 'oracle'
- HELIDON_PIPELINES: 'true'
MAVEN_ARGS: |
+ -B -fae -e
-Dmaven.wagon.httpconnectionManager.ttlSeconds=60
-Dmaven.wagon.http.retryHandler.count=3
@@ -74,7 +75,7 @@ jobs:
mvn ${MAVEN_ARGS} -e \
-DskipTests \
-Dmaven.test.skip=true \
- -Pspotbugs,pipeline \
+ -Pspotbugs \
install
docs:
timeout-minutes: 30
@@ -89,12 +90,10 @@ jobs:
cache: maven
- name: Docs
run: |
- mvn ${MAVEN_ARGS} -e \
- -Dmaven.test.skip=true \
+ mvn ${MAVEN_ARGS} \
-DskipTests \
- -Ppipeline \
install
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} \
-f docs/pom.xml \
-Pjavadoc \
install
@@ -114,9 +113,9 @@ jobs:
cache: maven
- name: Maven build
run: |
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} \
-Dmaven.test.failure.ignore=false \
- -Pjavadoc,sources,tests,pipeline \
+ -Pjavadoc,sources,tests \
install
examples:
timeout-minutes: 40
@@ -142,29 +141,22 @@ jobs:
- name: Maven build
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
- -Dmaven.test.skip=true \
+ mvn ${MAVEN_ARGS} -T8 \
-DskipTests \
- -Ppipeline \
install
- - name: Examples checkout
- uses: actions/checkout@v4
- with:
- fetch-depth: '0'
- repository: helidon-io/helidon-examples.git
- ref: dev-4.x
- path: helidon-examples
- name: Examples build
run: etc/scripts/build-examples.sh
- name: Test quickstarts native image
run: etc/scripts/test-quickstarts.sh
mp-tck:
timeout-minutes: 60
- name: "MicroProfile TCKs"
strategy:
matrix:
os: [ ubuntu-20.04 ]
+ include:
+ - { os: ubuntu-20.04, platform: linux }
runs-on: ${{ matrix.os }}
+ name: tests/tck-${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
@@ -176,12 +168,10 @@ jobs:
- name: Maven build
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
- -Dmaven.test.skip=true \
+ mvn ${MAVEN_ARGS} -T8 \
-DskipTests \
- -Ppipeline \
install
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} \
-f microprofile/tests/tck/pom.xml \
-Ptck-ft \
verify
@@ -202,10 +192,8 @@ jobs:
- name: Test archetypes
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
- -Dmaven.test.skip=true \
+ mvn ${MAVEN_ARGS} -T8 \
-DskipTests \
- -Ppipeline \
install
mvn ${MAVEN_ARGS} -e \
-f archetypes/pom.xml \
@@ -240,7 +228,7 @@ jobs:
- name: Build Helidon
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} -T4 \
-DskipTests \
-Ptests \
install
@@ -281,7 +269,7 @@ jobs:
- name: Build Helidon
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} -T4 \
-DskipTests \
-Ptests \
install
@@ -297,10 +285,13 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
+ os: [ ubuntu-20.04 ]
group: [ oracle, others ]
include:
- { group: others, modules: '!oracle' }
- runs-on: ubuntu-20.04
+ - { os: ubuntu-20.04, platform: linux }
+ runs-on: ${{ matrix.os }}
+ name: tests/dbclient-${{ matrix.group }}-${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
@@ -309,16 +300,22 @@ jobs:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
+ - name: Free Space
+ shell: bash
+ run: |
+ # See https://github.com/actions/runner-images/issues/2840
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /usr/local/share/powershell
- name: Build Helidon
run: |
# prime build
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} -T4 \
-DskipTests \
-Ptests \
install
- name: Run Tests
run: |
- mvn ${MAVEN_ARGS} -e \
+ mvn ${MAVEN_ARGS} \
-f tests/integration/dbclient/pom.xml \
-pl ${{ matrix.modules || matrix.group }} \
-am \
diff --git a/etc/scripts/build-examples.sh b/etc/scripts/build-examples.sh
index c4ffb2b352a..a9ac86b1a2a 100755
--- a/etc/scripts/build-examples.sh
+++ b/etc/scripts/build-examples.sh
@@ -47,11 +47,12 @@ readonly WS_DIR
readonly HELIDON_EXAMPLES_PATH=${WS_DIR}/helidon-examples
if [ ! -d "${WS_DIR}/helidon-examples" ]; then
echo "Cloning examples repository into ${WS_DIR}/helidon-examples"
- git clone --branch dev-4.x --single-branch git@github.com:helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
+ git clone --branch dev-4.x --single-branch https://github.com/helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
fi
version() {
- mvn -B -N -f "${1}" -Dexpression=helidon.version help:evaluate | grep -v '\[INFO\]'
+ # shellcheck disable=SC2086
+ mvn ${MAVEN_ARGS} -B -N -f "${1}" -Dexpression=helidon.version help:evaluate | grep -v '\[INFO\]'
}
# Make sure the helidon version from the example repo aligns with this repository
diff --git a/etc/scripts/test-quickstarts.sh b/etc/scripts/test-quickstarts.sh
index 174e48ad147..78c0b1b4313 100755
--- a/etc/scripts/test-quickstarts.sh
+++ b/etc/scripts/test-quickstarts.sh
@@ -58,7 +58,7 @@ mvn ${MAVEN_ARGS} --version
# If needed we clone the helidon-examples repo into a subdirectory of the helidon repository
if [ ! -d "${WS_DIR}/helidon-examples" ]; then
echo "Cloning examples repository into ${HELIDON_EXAMPLES_PATH}"
- git clone --branch dev-4.x --single-branch git@github.com:helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
+ git clone --branch dev-4.x --single-branch https://github.com/helidon-io/helidon-examples.git "${WS_DIR}/helidon-examples"
fi
# Build quickstart native-image executable and run jar file
diff --git a/metrics/metrics/pom.xml b/metrics/metrics/pom.xml
index a293bd7ef92..adba141799b 100644
--- a/metrics/metrics/pom.xml
+++ b/metrics/metrics/pom.xml
@@ -148,23 +148,6 @@
-
- pipeline
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- 45
- 0.25
-
-
-
-
-
-
release
@@ -190,5 +173,4 @@
-
diff --git a/metrics/provider-tests/pom.xml b/metrics/provider-tests/pom.xml
index 08de79bb9e0..efb9dce4511 100644
--- a/metrics/provider-tests/pom.xml
+++ b/metrics/provider-tests/pom.xml
@@ -150,27 +150,4 @@
-
-
-
- pipeline
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- 45
- 0.25
-
-
-
-
-
-
-
-
-
-
diff --git a/microprofile/metrics/pom.xml b/microprofile/metrics/pom.xml
index 914cd6ade8a..8a629850243 100644
--- a/microprofile/metrics/pom.xml
+++ b/microprofile/metrics/pom.xml
@@ -213,23 +213,4 @@
-
-
-
- pipeline
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- false
-
-
-
-
-
-
-