File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 uses : actions/setup-java@v4
2222 with :
2323 java-version : ' 11' # Set to JDK 11
24- distribution : ' adopt '
24+ distribution : ' temurin ' # Corrected to 'temurin' (Adoptium JDK)
2525
2626 - name : Cache Maven dependencies
2727 uses : actions/cache@v3
@@ -32,10 +32,10 @@ jobs:
3232 ${{ runner.os }}-maven-
3333
3434 - name : Build with Maven
35- run : mvn clean install
35+ run : mvn clean install -e -X # Run Maven with debug flags (-e for errors, -X for debug)
3636
3737 - name : Run Maven tests
38- run : mvn test # Run all the test cases using Maven Surefire Plugin
38+ run : mvn test -e -X # Run tests with debug flags to get more detailed information
3939
4040 - name : Convert Maven test reports to CSV
4141 run : |
6868 - name : Add summary to download the test results CSV
6969 run : |
7070 echo "### [Download the test results CSV](https://github.com/${{ github.repository }}/suites/${{ github.run_id }}/artifacts)" >> $GITHUB_STEP_SUMMARY
71+
72+ - name : Continue workflow despite test failures (optional)
73+ if : failure() # This step will run even if previous steps fail
74+ run : echo "Tests failed, but proceeding with the workflow..."
You can’t perform that action at this time.
0 commit comments