From 8bfdf04af6c2c747b388fbc0279d1ab0b6811bb3 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Thu, 30 Nov 2023 15:37:45 -0500 Subject: [PATCH] Store test reports only in case of failure --- .github/workflows/linux-build-release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/linux-build-release.yml b/.github/workflows/linux-build-release.yml index 43859da6..6faa7789 100644 --- a/.github/workflows/linux-build-release.yml +++ b/.github/workflows/linux-build-release.yml @@ -36,13 +36,14 @@ jobs: HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }} HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }} run: ./gradlew functionalTest - - name: Store build reports for functionalTest - uses: actions/upload-artifact@v3 - with: - name: functionalTest-reports - path: build/reports/tests/functionalTest/ - name: Documentation tests run: ./gradlew docTest + - name: Store Test Reports + if: ${{ failure() }} + uses: actions/upload-artifact@v3 + with: + name: test-reports + path: build/reports/tests - name: Assemble artifacts run: ./gradlew assemble javadoc asciidoctorAllGuides - name: Upload binaries