Skip to content

Commit

Permalink
✨ Feat: checkstyle workflow 작성
Browse files Browse the repository at this point in the history
<footer>
- 관련: #28
  • Loading branch information
luke0408 committed Mar 2, 2024
1 parent d2eb83e commit fd9cde8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 🎨 Checkstyle

on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened ]


jobs:
checkstyle:
name: checkstyle
runs-on: ubuntu-latest # ubuntu-22.04

strategy:
matrix:
java: [ 17 ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
architecture: x64
cache: "gradle"

- name: Run Checkstyle
uses: dbelyaev/action-checkstyle@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
checkstyle_config: ./lint-config/namo-checkstyle-rules.xml
level: warning

0 comments on commit fd9cde8

Please sign in to comment.