From c550e38d15ecc5f149868214e2f33ca48939c056 Mon Sep 17 00:00:00 2001
From: Guillaume Smet <guillaume.smet@gmail.com>
Date: Fri, 5 Aug 2022 10:56:59 +0200
Subject: [PATCH] Upload reports of the quickstarts compilation job

---
 .github/workflows/ci-actions-incremental.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml
index a2c7dc02b2c27..d5513ef91771e 100644
--- a/.github/workflows/ci-actions-incremental.yml
+++ b/.github/workflows/ci-actions-incremental.yml
@@ -627,6 +627,16 @@ jobs:
           git clone https://github.com/quarkusio/quarkus-quickstarts.git && cd quarkus-quickstarts
           git checkout development
           export LANG=en_US && ./mvnw -e -B -fae --settings .github/mvn-settings.xml clean verify -DskipTests
+      - name: Upload build reports (if build failed)
+        uses: actions/upload-artifact@v2
+        if: ${{ failure() || cancelled() }}
+        with:
+          name: "build-reports-Quickstarts Compilation - JDK ${{matrix.java.name}}"
+          path: |
+            quarkus-quickstarts/**/target/*-reports/TEST-*.xml
+            quarkus-quickstarts/target/build-report.json
+            quarkus-quickstarts/LICENSE
+          retention-days: 2
 
   tcks-test:
     name: MicroProfile TCKs Tests