From 7061fcaaf09877e0adab932b670482dffef1e13a Mon Sep 17 00:00:00 2001 From: "Wendland, Florian" Date: Fri, 5 Apr 2024 09:48:40 +0200 Subject: [PATCH] Try failure collection from matrix jobs --- .github/workflows/upgrade.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index 5ad51d1de..f4715f55e 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -40,4 +40,26 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Build and Test + id: build-and-test run: ./gradlew build --parallel + - if: ${{ failure() }} + run: touch failure + - if: ${{ !cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.os }}-${{ matrix.java-lts }}-failure + path: failure + if-no-files-found: ignore + retention-days: 1 + + process-failures: + if: ${{ !cancelled() }} + needs: [ build ] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + path: all-failures + pattern: '*-failure' + merge-multiple: true + - run: ls -laR \ No newline at end of file