Skip to content

Commit

Permalink
negative cases for SE 8 tomee nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jannahsherif committed Jul 25, 2024
1 parent 6127d98 commit 757c53d
Showing 1 changed file with 79 additions and 1 deletion.
80 changes: 79 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ jobs:
docker rmi test-image
rm -rf app/payara
- name: Run Archetype for EE, SE 8, TomEE
- name: Run Archetype for EE 8, 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 -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
Expand All @@ -279,6 +279,84 @@ jobs:
docker rmi test-image
rm -rf app/tomee
- name: Run Archetype for EE 9, SE 8, TomEE
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=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="TomEE requires Web Profile and Jakarta EE 8 or 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."
exit 1
fi
rm -f mvn_output.txt
- name: Run Archetype for EE 9.1, SE 8, TomEE
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=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="TomEE requires Web Profile and Jakarta EE 8 or 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."
exit 1
fi
rm -f mvn_output.txt
- name: Run Archetype for EE 9.1 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=9.1 -Dprofile=web -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="TomEE requires Web Profile and Jakarta EE 8 or 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."
exit 1
fi
rm -f mvn_output.txt
- name: Run Archetype for EE 10, SE 8, TomEE
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=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="TomEE requires Web Profile and Jakarta EE 8 or 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."
exit 1
fi
rm -f mvn_output.txt
- name: Run Archetype for EE 10 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=10 -Dprofile=web -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="TomEE requires Web Profile and Jakarta EE 8 or 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."
exit 1
fi
rm -f mvn_output.txt
- name: Run Archetype for EE 10 Core 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=10 -Dprofile=core -DjavaVersion=8 -Druntime=tomee -DoutputDirectory=app/tomee -Dgoals="clean package" | tee mvn_output.txt
MAVEN_EXIT_CODE=${PIPESTATUS[0]}
ERROR_MESSAGE="Core Profile only available for Jakarta EE 10 and later."
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 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
Expand Down

0 comments on commit 757c53d

Please # to comment.