Skip to content

Commit

Permalink
Add detekt for kotlin (#27661)
Browse files Browse the repository at this point in the history
* Add detekt for kotlin

* Force detekt paths since otherwise it gets hung up on symbolinc links

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
  • Loading branch information
andy31415 and andreilitvin authored Jul 7, 2023
1 parent 2f875c7 commit 53e06c7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/kotlin-detekt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Kotlin - Detekt

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

jobs:
detekt:
runs-on: ubuntu-latest

steps:
- name: "checkout"
uses: actions/checkout@v2

- name: "detekt"
uses: natiginfo/action-detekt-all@1.23.0
with:
args: --parallel --input examples/android/CHIPTest/,examples/android/CHIPTool,examples/java-matter-controller/java,src/controller/java

0 comments on commit 53e06c7

Please sign in to comment.