From 9848a9e4891b6a3d4cbcd4f5c494b7681b204cfa Mon Sep 17 00:00:00 2001 From: TraceofLight Date: Fri, 15 Aug 2025 18:26:17 +0900 Subject: [PATCH] feat: ktlint workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit github action 사용을 위한 workflow 설정 - 초기 yml 설정 - master hotfix 고려한 target branch --- .github/workflows/ktlint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ktlint.yml diff --git a/.github/workflows/ktlint.yml b/.github/workflows/ktlint.yml new file mode 100644 index 0000000..50d24dd --- /dev/null +++ b/.github/workflows/ktlint.yml @@ -0,0 +1,27 @@ +name: Ktlint Check + +on: + pull_request: + branches: + - master + - develop + +jobs: + ktlint: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Run Ktlint Check + run: ./gradlew ktlintCheck \ No newline at end of file