Skip to content

Commit

Permalink
Fix Java PreCommit Action correct branch to run (#28440)
Browse files Browse the repository at this point in the history
* Also upload human readable test reports on failure
  • Loading branch information
Abacn authored Sep 14, 2023
1 parent 5696c59 commit d474354
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/beam_PreCommit_Java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit d474354

Please sign in to comment.