-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.yaml
34 lines (34 loc) · 972 Bytes
/
checkstyle.yaml
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
name: checkstyle
on:
pull_request:
push:
branches: [main]
jobs:
checkstyle-pr:
runs-on: ubuntu-latest
if: "contains(github.event_name, 'pull_request')"
steps:
- uses: actions/checkout@v2
- uses: dbelyaev/action-checkstyle@master
with:
github_token: ${{ secrets.WEICHBOT }}
reporter: github-pr-review
level: error
filter_mode: nofilter
checkstyle_config: ./checkstyle.xml
checkstyle_version: 9.1
fail_on_error: true
checkstyle-push:
runs-on: ubuntu-latest
if: "contains(github.event_name, 'push')"
steps:
- uses: actions/checkout@v2
- uses: dbelyaev/action-checkstyle@master
with:
github_token: ${{ secrets.WEICHBOT }}
reporter: github-check
level: error
filter_mode: nofilter
checkstyle_config: ./checkstyle.xml
checkstyle_version: 9.1
fail_on_error: true