Skip to content

Commit

Permalink
GHA: Upload build reports on test failures (#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko authored Aug 7, 2024
1 parent dfbaf4a commit befa8d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ jobs:
run: >
./gradlew test --stacktrace --continue
"-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}"
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-reports-${{ runner.os }}-${{ github.action }}-${{ github.run_id }}
path: |
**/build/reports/
**/*.hprof
**/*.log
if-no-files-found: ignore
10 changes: 10 additions & 0 deletions .github/workflows/tests-thorough.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ jobs:
run: >
./gradlew test --stacktrace --continue
"-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ matrix.javaVersion }}"
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-reports-${{ runner.os }}-${{ github.action }}-${{ github.run_id }}
path: |
**/build/reports/
**/*.hprof
**/*.log
if-no-files-found: ignore

0 comments on commit befa8d4

Please sign in to comment.