GitHub Action for running detekt checks to enforce best practices. Detekt is a static code analysis tool for Kotlin.
Version of the action is aligned with detekt versions.
name: detekt
on:
push:
branches: [ master ]
jobs:
detekt:
runs-on: ubuntu-latest
steps:
- name: "checkout"
uses: actions/checkout@v2
- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.7
Usage with CLI parameters
name: detekt
on:
push:
branches: [ master ]
jobs:
detekt:
runs-on: ubuntu-latest
steps:
- name: "checkout"
uses: actions/checkout@v2
- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.7
with:
args: --config detekt.yml
You can check available CLI parameters here