From 12d86149ab6070fa2270e0bb7b13291a9dfbc8ae Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Fri, 4 Nov 2022 13:05:01 +0200 Subject: [PATCH] [GitHub Actions] Added upload error logs --- .github/workflows/common.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 6f4dc8c0..8416dd67 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -296,6 +296,14 @@ jobs: CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }} DEFAULT_JDK: ${{ needs.parameters.outputs.jre_version }} run: ./build-app.sh "stream-applications" "applications/processor/${{ matrix.app }}" + - name: 'Upload: Error logs' + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: '${{ matrix.app }}-surefire-reports' + path: '**/target/surefire-reports' + retention-days: 7 + if-no-files-found: ignore - name: 'Publish: ${{ matrix.app }}' shell: bash env: @@ -365,6 +373,14 @@ jobs: CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }} DEFAULT_JDK: ${{ needs.parameters.outputs.jre_version }} run: ./build-app.sh "stream-applications" "applications/sink/${{ matrix.app }}" + - name: 'Upload: Error logs' + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: '${{ matrix.app }}-surefire-reports' + path: '**/target/surefire-reports' + retention-days: 7 + if-no-files-found: ignore - name: 'Publish: ${{ matrix.app }}' shell: bash env: @@ -435,6 +451,14 @@ jobs: CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }} DEFAULT_JDK: ${{ needs.parameters.outputs.jre_version }} run: ./build-app.sh "stream-applications" "applications/source/${{ matrix.app }}" + - name: 'Upload: Error logs' + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: '${{ matrix.app }}-surefire-reports' + path: '**/target/surefire-reports' + retention-days: 7 + if-no-files-found: ignore - name: 'Publish: ${{ matrix.app }}' shell: bash env: