Skip to content

Commit fb8acf9

Browse files
authored
Publish test results on failure (#1705)
Update CI for all workflows to always publish test results even on failures
1 parent 625fc1f commit fb8acf9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ jobs:
8080
shell: bash
8181
run: mvn -B -e -fae verify -Pactivemq.tests-quick -Dsurefire.rerunFailingTestsCount=3
8282
- name: Upload Test Results
83-
if: (!cancelled())
83+
if: always()
8484
uses: actions/upload-artifact@v4
8585
with:
8686
name: test-results-${{ matrix.os }}-java${{ matrix.java-version }}
8787
path: '**/target/surefire-reports/*.xml'
8888
- name: Publish Test Results
89-
if: (!cancelled()) && runner.os == 'Linux'
89+
if: runner.os == 'Linux'
9090
uses: EnricoMi/publish-unit-test-result-action@v2
9191
with:
9292
large_files: true

.github/workflows/ci-quick.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ jobs:
7575
- name: Test
7676
run: mvn -B -e -fae verify -Pactivemq.tests-quick
7777
- name: Upload Test Results
78-
if: (!cancelled())
78+
if: always()
7979
uses: actions/upload-artifact@v4
8080
with:
8181
name: test-results
8282
path: '**/target/surefire-reports/*.xml'
8383
- name: Publish Test Results
84-
if: (!cancelled())
84+
if: always()
8585
uses: EnricoMi/publish-unit-test-result-action@v2
8686
with:
8787
large_files: true

0 commit comments

Comments
 (0)