Publish test results on failure (#1705)

Update CI for all workflows to always publish test results even on
failures
This commit is contained in:
Christopher L. Shannon
2026-02-19 11:08:53 -05:00
committed by GitHub
parent 625fc1fd41
commit fb8acf9909
2 changed files with 4 additions and 4 deletions

View File

@@ -80,13 +80,13 @@ jobs:
shell: bash
run: mvn -B -e -fae verify -Pactivemq.tests-quick -Dsurefire.rerunFailingTestsCount=3
- name: Upload Test Results
if: (!cancelled())
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-java${{ matrix.java-version }}
path: '**/target/surefire-reports/*.xml'
- name: Publish Test Results
if: (!cancelled()) && runner.os == 'Linux'
if: runner.os == 'Linux'
uses: EnricoMi/publish-unit-test-result-action@v2
with:
large_files: true

View File

@@ -75,13 +75,13 @@ jobs:
- name: Test
run: mvn -B -e -fae verify -Pactivemq.tests-quick
- name: Upload Test Results
if: (!cancelled())
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: '**/target/surefire-reports/*.xml'
- name: Publish Test Results
if: (!cancelled())
if: always()
uses: EnricoMi/publish-unit-test-result-action@v2
with:
large_files: true