Add workflow for running and reporting checkstyle.

This commit is contained in:
Jeremy Wood 2023-09-06 17:37:31 -04:00
parent dcbcca9a62
commit 8b895d41f7
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B
2 changed files with 27 additions and 0 deletions

View File

@ -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

9
.github/workflows/pr.checkstyle.yml vendored Normal file
View File

@ -0,0 +1,9 @@
name: 'PR: Checkstyle'
on:
pull_request:
types: [opened, synchronize]
jobs:
test:
uses: ./.github/workflows/generic.checkstyle.yml