File tree Expand file tree Collapse file tree 4 files changed +392
-30
lines changed Expand file tree Collapse file tree 4 files changed +392
-30
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Uses: https://github.com/marketplace/actions/prettier-java-action
2
2
# Auto formats code using Prettier
3
- name : Java (Prettier)
3
+ # Uses: https://github.com/marketplace/actions/run-java-checkstyle
4
+ # Submits review annotations based on checkstyle errors
5
+
6
+ name : Java Style
4
7
5
8
on : pull_request
6
9
28
31
commit_message : ' Bot: Prettified Java code!'
29
32
env :
30
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+
35
+ checkstyle :
36
+ name : Java Checkstyle
37
+ runs-on : ubuntu-latest
38
+ needs : prettify
39
+
40
+ steps :
41
+ - name : Check out Git repository
42
+ uses : actions/checkout@v2
43
+
44
+ - name : Run checkstyle with reviewdog
45
+ uses : nikitasavinov/checkstyle-action@master
46
+ with :
47
+ github_token : ${{ secrets.GITHUB_TOKEN }}
48
+ reporter : github-pr-review # submit review comments based on reviewdog findings
49
+ filter_mode : file # report on anything that is in an added/modified file
50
+ fail_on_error : true
51
+ checkstyle_config : google_checks_mod.xml
52
+ workdir : src/com/codefortomorrow # working dir relative to root dir
Original file line number Diff line number Diff line change 3
3
4
4
# ignore files
5
5
c4t-java.iml
6
- * .xml
7
6
.DS_Store
You can’t perform that action at this time.
0 commit comments