Skip to content

Commit 482082c

Browse files
committed
Upload results on failure
1 parent 5031460 commit 482082c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@ jobs:
4444
./gradlew \
4545
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
4646
${{ matrix.targets }}
47-
shell: bash
47+
shell: bash
48+
49+
# Credit: https://github.com/gradle/actions/issues/76#issuecomment-2007584323
50+
- name: Upload reports on failure
51+
if: failure()
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: report-for-${{ matrix.os }}
55+
path: |
56+
**/build/reports/
57+
**/build/test-results/

0 commit comments

Comments
 (0)