Upload test logs on build failure (#16)
diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml
index 6bc4722..22db31c 100644
--- a/.github/workflows/maven.yaml
+++ b/.github/workflows/maven.yaml
@@ -52,12 +52,14 @@
env:
MAVEN_OPTS: -Djansi.force=true
- name: Upload unit test results
+ if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: surefire-reports
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