Upload test logs on build failure
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 91530bf..7db021c 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -56,18 +56,21 @@
env:
MAVEN_OPTS: -Djansi.force=true
- name: Upload unit test results
+ if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: surefire-reports-${{ matrix.profile.name }}
path: ./**/target/surefire-reports/
if-no-files-found: ignore
- name: Upload integration test results
+ if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: failsafe-reports-${{ matrix.profile.name }}
path: ./**/target/failsafe-reports/
if-no-files-found: ignore
- name: Upload mini test logs
+ if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: mini-tests-logs-${{ matrix.profile.name }}