From 402e78374d7fdb9450b9e631a91671fbb970053e Mon Sep 17 00:00:00 2001 From: Mohamed Elzeni Date: Thu, 25 Jul 2024 09:00:00 +0300 Subject: [PATCH 1/3] Add all Payara negative cases --- .github/workflows/nightly.yml | 416 ++++++++++++++++++++++++++++++++++ 1 file changed, 416 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7017415d..d542048c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -254,6 +254,266 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 8 Core Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 8 Core Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Web Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Web Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Core Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Core Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Web Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Web Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Payara 6 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Core Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Core Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10 Web Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10 Web Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10 Core Profile, SE 8, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 10 Core Profile, SE 8, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 8 Web Profile, SE 8, TomEE run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=web -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" @@ -563,6 +823,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 8 Core Profile, SE 11, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 8 Core Profile, SE 11, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 9, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -587,6 +873,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 9 Core Profile, SE 11, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Core Profile, SE 11, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 9.1, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -611,6 +923,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 9.1 Core Profile, SE 11, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Core Profile, SE 11, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 10, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -967,6 +1305,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 8 Core Profile, SE 17, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 8 Core Profile, SE 17, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 9, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -991,6 +1355,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 9 Core Profile, SE 17, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9 Core Profile, SE 17, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 9.1, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -1015,6 +1405,32 @@ jobs: docker rmi test-image rm -rf app/payara + - name: Run Archetype for EE 9.1 Core Profile, SE 17, Payara + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + + - name: Run Archetype for EE 9.1 Core Profile, SE 17, Payara, with Docker + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + echo "Maven build did not fail, or the expected error message was not found. Test Failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 10, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" From 2eab92674721da3c719abb37f7f8bf7a1938313d Mon Sep 17 00:00:00 2001 From: Mohamed Elzeni Date: Thu, 25 Jul 2024 09:18:26 +0300 Subject: [PATCH 2/3] Remove covered cases --- .github/workflows/nightly.yml | 312 ---------------------------------- 1 file changed, 312 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d542048c..aeb8b023 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -254,32 +254,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 8 Core Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 8 Core Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9, SE 8, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt @@ -332,32 +306,6 @@ jobs: rm -f mvn_output.txt - - name: Run Archetype for EE 9 Core Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9 Core Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9.1, SE 8, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt @@ -410,110 +358,6 @@ jobs: rm -f mvn_output.txt - - name: Run Archetype for EE 9.1 Core Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9.1 Core Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10 Web Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10 Web Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10 Core Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 10 Core Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 8 Web Profile, SE 8, TomEE run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=web -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" @@ -823,32 +667,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 8 Core Profile, SE 11, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 8 Core Profile, SE 11, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -873,32 +691,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 9 Core Profile, SE 11, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9 Core Profile, SE 11, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9.1, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -923,32 +715,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 9.1 Core Profile, SE 11, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9.1 Core Profile, SE 11, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=11 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 10, SE 11, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=11 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -1305,32 +1071,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 8 Core Profile, SE 17, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 8 Core Profile, SE 17, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -1355,32 +1095,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 9 Core Profile, SE 17, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9 Core Profile, SE 17, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9.1, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" @@ -1405,32 +1119,6 @@ jobs: docker rmi test-image rm -rf app/payara - - name: Run Archetype for EE 9.1 Core Profile, SE 17, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9.1 Core Profile, SE 17, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=core -DjavaVersion=17 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="the Core Profile is only supported for Jakarta EE 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 10, SE 17, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=17 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" From adc8cb937600533d1f9a1498e24d7fc2db25d346 Mon Sep 17 00:00:00 2001 From: Mohamed Elzeni Date: Thu, 25 Jul 2024 09:23:16 +0300 Subject: [PATCH 3/3] Remove redundant cases --- .github/workflows/nightly.yml | 78 ----------------------------------- 1 file changed, 78 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index aeb8b023..83933d76 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -267,45 +267,6 @@ jobs: rm -f mvn_output.txt - - name: Run Archetype for EE 9, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9 Web Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9 Web Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 9.1, SE 8, Payara run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt @@ -319,45 +280,6 @@ jobs: rm -f mvn_output.txt - - name: Run Archetype for EE 9.1, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9.1 Web Profile, SE 8, Payara - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=web -DjavaVersion=8 -Druntime=payara -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 9.1 Web Profile, SE 8, Payara, with Docker - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=web -DjavaVersion=8 -Druntime=payara -Ddocker=yes -DoutputDirectory=app/payara -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="Payara 6 does not support Java SE 8" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 8 Web Profile, SE 8, TomEE run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=web -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package"