diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f3db4f5..1bf5869 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -33,7 +33,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Java SE versions are 8, 11, and 17" 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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -56,12 +56,25 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="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." + 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 MicroProfile, SE 8 + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=microprofile -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" + 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 run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" @@ -79,7 +92,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -102,7 +115,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -110,12 +123,12 @@ jobs: - name: Run Archetype for EE 10, SE 8 run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=full -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -DoutputDirectory=app -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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -239,6 +252,17 @@ jobs: docker rmi test-image rm -rf app/tomee + - name: Run Archetype for EE 8, SE 8, WebLogic + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=weblogic -DoutputDirectory=app/weblogic -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid runtime values are none, glassfish, open-liberty, payara, tomee, and wildfly" + 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 + - name: Run Archetype for EE 8, SE 8, WildFly run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" @@ -251,14 +275,14 @@ jobs: docker rmi test-image rm -rf app/wildfly - - name: Run Archetype for EE 8, SE 8, WildFly, with Invalid Docker + - name: Run Archetype for EE 8, SE 8, WildFly, with invalid Docker option run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=wildfly -Ddocker=Y -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Docker options are yes and no" 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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -278,12 +302,12 @@ jobs: - name: Run Archetype for EE 9, SE 8, WildFly run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=full -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="WildFly does not offer a release for Jakarta EE 9 or Jakarta EE 9.1" 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." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -291,28 +315,17 @@ jobs: - name: Run Archetype for EE 9.1, SE 8, WildFly run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=full -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt + 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=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="WildFly does not offer a release for Jakarta EE 9 or Jakarta EE 9.1" 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." + 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, SE 8, WebLogic - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=weblogic -DoutputDirectory=app/weblogic -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid runtime values are none, glassfish, open-liberty, payara, tomee, and wildfly" - 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 - - name: Set up Java SE 11 uses: actions/setup-java@v4 with: @@ -364,32 +377,6 @@ jobs: mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" rm -rf app - - name: Run Archetype for EE 10 Micro Profile, SE 11 - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=micro -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - 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 11, SE 11 - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=11 -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid Jakarta EE versions are 8, 9, 9.1, and 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, SE 11, GlassFish run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=11 -Druntime=glassfish -DoutputDirectory=app/glassfish -Dgoals="clean package" @@ -781,6 +768,19 @@ jobs: mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=17 -DoutputDirectory=app -Dgoals="clean package" rm -rf app + - name: Run Archetype for EE 11, SE 17 + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=11 -DjavaVersion=17 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid Jakarta EE versions are 8, 9, 9.1, and 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, SE 17, GlassFish run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=17 -Druntime=glassfish -DoutputDirectory=app/glassfish -Dgoals="clean package"