-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 1.25 KB
/
checkstyle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
pull_request_target:
types: [labeled]
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle job
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run java checkstyle
# You may pin to the exact commit or the version.
uses: nikitasavinov/[email protected]
with:
# GITHUB_TOKEN.
github_token: ${{ secrets.GITHUB_TOKEN }}
# Report level for reviewdog [info,warning,error]
level: info
# Reporter of reviewdog command [github-pr-check,github-pr-review]
reporter: github-pr-check
# Filtering for the reviewdog command [added,diff_context,file,nofilter]. Default is `added`.
filter_mode: added
# Exit code for reviewdog when errors are found [true,false] Default is `false`.
fail_on_error: false
# Checkstyle config file
checkstyle_config: personium-checkstyle.xml
# Working directory relative to the root directory.
workdir: src/
# Tool name to use for reviewdog reporter
tool_name: reviewdog
# Properties file relative to the root directory.
properties_file: checkstyle_maven.properties