Skip to content

Commit

Permalink
Add ktlint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FireBall1725 committed Dec 12, 2023
1 parent c5b9e45 commit 41d79bc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/kotlin-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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/0.43.2/ktlint && chmod a+x ktlint
./ktlint

0 comments on commit 41d79bc

Please sign in to comment.