diff --git a/.github/workflows/generic.checkstyle.yml b/.github/workflows/generic.checkstyle.yml new file mode 100644 index 00000000..ecac7d73 --- /dev/null +++ b/.github/workflows/generic.checkstyle.yml @@ -0,0 +1,18 @@ +name: 'Generic: Checkstyle' + +on: + workflow_call: + +jobs: + checkstyle: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v3 + + - uses: dbelyaev/action-checkstyle@v0.8.4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + checkstyle_version: 10.12.2 + checkstyle_config: ./config/mv_checks.yml diff --git a/.github/workflows/pr.checkstyle.yml b/.github/workflows/pr.checkstyle.yml new file mode 100644 index 00000000..b75defc5 --- /dev/null +++ b/.github/workflows/pr.checkstyle.yml @@ -0,0 +1,9 @@ +name: 'PR: Checkstyle' + +on: + pull_request: + types: [opened, synchronize] + +jobs: + test: + uses: ./.github/workflows/generic.checkstyle.yml