Skip to content

Commit

Permalink
Try failure collection from matrix jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
fwendland committed Apr 5, 2024
1 parent a1157b6 commit 7061fca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7061fca

Please sign in to comment.