Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a checker for ktfmt for kotlin files #27658

Merged
merged 13 commits into from
Jul 7, 2023
Merged
Next Next commit
Add a kotlin format workflow
  • Loading branch information
andreilitvin committed Jul 6, 2023
commit 454dc757b07d31e3c59cbc94d25a0a03ee7f16f4
24 changes: 24 additions & 0 deletions .github/workflows/ktfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ktfmt

on:
pull_request:
paths:
- "**/*.kt"
- ".github/workflows/ktfmt.yaml"

jobs:
ktlint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'

- name: "ktfmt"
uses: rsookram/ktfmt-action@v1
with:
style: kotlinlang