This is an automated email from the ASF dual-hosted git repository.

tabish pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-protonj2.git


The following commit(s) were added to refs/heads/main by this push:
     new cccfc7c  NO-JIRA Upload test logs on failure to aid in debugging
cccfc7c is described below

commit cccfc7c52800bf54ea3bb3c560a4f6d9b5230d96
Author: Timothy Bish <tabish...@gmail.com>
AuthorDate: Mon Jul 19 18:46:57 2021 -0400

    NO-JIRA Upload test logs on failure to aid in debugging
---
 .github/workflows/build.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 796bd09..c1a4cc3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,8 +27,20 @@ jobs:
       - name: Build & Test
         run: mvn clean verify
 
+      - name: Archive Test Logs On Failure
+        if: failure()
+        run: tar -czvf surefire-reports-jdk-${{ matrix.java }}.tar.gz 
**/target/surefire-reports/*
+
+      - name: Upload Test Logs On Failure
+        if: failure()
+        uses: actions/upload-artifact@v2
+        with:
+          name: surefire-reports-jdk-${{ matrix.java }}
+          path: surefire-reports-jdk-${{ matrix.java }}.tar.gz
+
       - name: Javadoc etc
         run: mvn clean verify -Papache-release -Dgpg.skip -DskipTests
 
       - name: RAT check
         run: mvn clean -Papache-release apache-rat:check
+

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to