Skip to content

Workflow file for this run

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 '!src/craftground/MinecraftEnv/src/main/java/com/kyhsgeekcode/minecraftenv/proto/**'