From e7e5ebf7aa16dae1f302edba57194f88aee216ff Mon Sep 17 00:00:00 2001 From: "Jeffrey E. Erickson" Date: Tue, 2 Jan 2024 13:50:03 -0600 Subject: [PATCH 1/3] add checkstyle workflow --- .github/workflows/checkstyle.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/checkstyle.yml diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml new file mode 100644 index 0000000..e69de29 From 51f142dc93fa904cce5434c5da19bae9f4a292d6 Mon Sep 17 00:00:00 2001 From: "Jeffrey E. Erickson" Date: Tue, 2 Jan 2024 13:51:38 -0600 Subject: [PATCH 2/3] add checkstyle workflow --- .github/workflows/checkstyle.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index e69de29..4d20ceb 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -0,0 +1,15 @@ +name: reviewdog-checkstyle + +on: [pull_request] + +jobs: + checkstyle: + name: runner / checkstyle + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dbelyaev/action-checkstyle@master + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: warning \ No newline at end of file From 9c3fac6baa93e6c5679fda449532495c39aca1da Mon Sep 17 00:00:00 2001 From: "Jeffrey E. Erickson" Date: Wed, 3 Jan 2024 15:58:30 -0600 Subject: [PATCH 3/3] update comments and specify revision --- .github/workflows/checkstyle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index 4d20ceb..e824c61 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -1,14 +1,17 @@ +# This workflow executes (java) checkstyle and then uses reviewdog to post comments to the PR. +# Reference: https://github.com/dbelyaev/action-checkstyle name: reviewdog-checkstyle on: [pull_request] +# This job is the usage example from the owner of the action, except we specify a version rather than using the head jobs: checkstyle: name: runner / checkstyle runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dbelyaev/action-checkstyle@master + - uses: dbelyaev/action-checkstyle@v1.2.1 with: github_token: ${{ secrets.github_token }} reporter: github-pr-review