Skip to content

Add ktlint workflow

Add ktlint workflow #2

Workflow file for this run

name: Lint Kotlin Files
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
java-version: 21
distribution: adopt
- name: Run ktlint
run: |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.1/ktlint && chmod a+x ktlint
./ktlint