From 5314ea2a6112d0458a163189f989bcdbfa5cb48a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Jul 2023 23:11:13 -0400 Subject: [PATCH] Add detekt for kotlin (#27661) * Add detekt for kotlin * Force detekt paths since otherwise it gets hung up on symbolinc links --------- Co-authored-by: Andrei Litvin --- .github/workflows/kotlin-detekt.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/kotlin-detekt.yaml diff --git a/.github/workflows/kotlin-detekt.yaml b/.github/workflows/kotlin-detekt.yaml new file mode 100644 index 00000000000000..1670b6def55d4f --- /dev/null +++ b/.github/workflows/kotlin-detekt.yaml @@ -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