Skip to content

Commit 5b2d54a

Browse files
Update main.yml
1 parent 81094aa commit 5b2d54a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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: |
@@ -68,3 +68,7 @@ jobs:
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..."

0 commit comments

Comments
 (0)