Skip to content

Commit

Permalink
🎨 Add ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Dec 28, 2024
1 parent f5df072 commit 27b9bb5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ktlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Format Check for Kotlin

on:
pull_request:
paths:
- '**/*.kt'
- '**/*.kts'

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ktlint
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.5.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
- name: Find and Check All Files
run: ktlint

0 comments on commit 27b9bb5

Please sign in to comment.