From d474354e39e0962a8328f5cc037af5b4646b796e Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Thu, 14 Sep 2023 10:06:44 -0400 Subject: [PATCH] Fix Java PreCommit Action correct branch to run (#28440) * Also upload human readable test reports on failure --- .github/workflows/beam_PreCommit_Java.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/beam_PreCommit_Java.yml b/.github/workflows/beam_PreCommit_Java.yml index a45305695606..dbf4dd0c82d7 100644 --- a/.github/workflows/beam_PreCommit_Java.yml +++ b/.github/workflows/beam_PreCommit_Java.yml @@ -158,8 +158,9 @@ jobs: github.event_name == 'workflow_dispatch' || github.event.comment.body == 'Run Java PreCommit' steps: + - uses: actions/checkout@v3 - name: Setup repository - uses: actions/checkout@v3 + uses: ./.github/actions/setup-action with: comment_phrase: ${{ matrix.job_phrase }} github_token: ${{ secrets.GITHUB_TOKEN }} @@ -172,10 +173,11 @@ jobs: -PdisableSpotlessCheck=true \ -PdisableCheckStyle=true \ - name: Upload test report + if: failure() uses: actions/upload-artifact@v3 with: - name: java-code-coverage-report - path: "**/build/test-results/**/*.xml" + name: junit-report + path: "**/build/reports/tests/" - name: Archive SpotBugs Results uses: actions/upload-artifact@v3 with: