diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 0000000..6232cba --- /dev/null +++ b/.github/workflows/checkstyle.yml @@ -0,0 +1,25 @@ +name: "CheckStyle" + +on: pull_request + +jobs: + checkStyle: + name: CheckStyle + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Java 15 + uses: actions/setup-java@v1.4.3 + with: + java-version: '15' + architecture: x64 + + - name: Run java checkstyle + uses: nikitasavinov/checkstyle-action@0.3.1 + with: + checkstyle_config: checkstyle.xml + reporter: 'github-pr-check' + tool_name: 'StyleReview'