Skip to content

Commit

Permalink
Add “Check formatting” GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalik committed Dec 15, 2024
1 parent 54b9db5 commit 01be7c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check formatting
on: push
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 23
- run: |
curl -sSL -o ktfmt.jar https://github.com/facebook/ktfmt/releases/download/v0.53/ktfmt-0.53-jar-with-dependencies.jar
java -jar ktfmt.jar --dry-run --kotlinlang-style --set-exit-if-changed .

0 comments on commit 01be7c5

Please sign in to comment.