From 8b895d41f716f96673aa7c5df9bce845cd354ac4 Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Wed, 6 Sep 2023 17:37:31 -0400 Subject: [PATCH] Add workflow for running and reporting checkstyle. --- .github/workflows/generic.checkstyle.yml | 18 ++++++++++++++++++ .github/workflows/pr.checkstyle.yml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/generic.checkstyle.yml create mode 100644 .github/workflows/pr.checkstyle.yml 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