2020-11-18 01:05:15 +01:00
|
|
|
name: Check PR code style
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-22 01:55:55 +02:00
|
|
|
- name: Set up JDK 17
|
2020-11-18 01:05:15 +01:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-10-22 01:55:55 +02:00
|
|
|
java-version: 17
|
2020-11-18 01:05:15 +01:00
|
|
|
- name: Run java checkstyle
|
2021-05-18 21:40:49 +02:00
|
|
|
uses: nikitasavinov/checkstyle-action@0.3.1
|
2020-11-18 01:05:15 +01:00
|
|
|
with:
|
|
|
|
# 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].
|
|
|
|
filter_mode: added
|
|
|
|
# Exit code for reviewdog when errors are found [true,false].
|
|
|
|
fail_on_error: false
|
|
|
|
# Checkstyle config file
|
2020-11-20 01:33:43 +01:00
|
|
|
checkstyle_config: minestom_checks.xml
|
2021-05-18 21:40:49 +02:00
|
|
|
checkstyle_version: "8.42"
|