This GitHub Action
runs the lastest version of ktlint on pull requests to enforce best practices.
Based on ScaCap implementation.
name: Project
on: [pull_request]
jobs:
ktlint:
name: Check Code Quality
runs-on: ubuntu-latest
steps:
- name: Clone PR
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Run Ktlint
uses: lucasnlm/ktlint-action@master