Skip to content

Commit

Permalink
Log reviewdog for debugging, only run on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jul 7, 2022
1 parent a085874 commit 8fa339d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ jobs:
# with:
# report_paths: 'gwt/build/out/**/test/**/reports/TEST-*.xml'
- name: Run reviewdog on all checkstyle output as applied to this PR's contents
if: always()
if: github.event_name == 'pull_request'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd gwt
for xml in $(find build/out | grep checkstyle); do
reviewdog -f=checkstyle -reporter=local -level=info -diff="git diff ${{github.event.pull_request.base}}"< $xml
reviewdog -f=checkstyle -reporter=github-pr-review -level=info < $xml
done
- name: Upload checkstyle xml for manual review
Expand Down

0 comments on commit 8fa339d

Please sign in to comment.