From 3ac28e08dba5f80d490332e11178f295b95a59b2 Mon Sep 17 00:00:00 2001 From: Christian Melchior Date: Thu, 16 Jun 2022 13:19:51 +0200 Subject: [PATCH] Run static analysis in parallel --- .github/workflows/include_static_analysis.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/include_static_analysis.yml b/.github/workflows/include_static_analysis.yml index d3fe540943..6e31031425 100644 --- a/.github/workflows/include_static_analysis.yml +++ b/.github/workflows/include_static_analysis.yml @@ -4,7 +4,7 @@ on: workflow_call: jobs: - static-analysis: + ktlint: runs-on: ubuntu-latest steps: @@ -45,10 +45,23 @@ jobs: title: Ktlint Analyzer report path: '/tmp/ktlint/**/*.xml' + detekt: + runs-on: ubuntu-latest + steps: + + - name: Checkout code + uses: actions/checkout@v3 + with: + submodules: "recursive" + + - name: Setup Gradle and task/dependency caching + uses: gradle/gradle-build-action@v2 + with: + cache-read-only: false # TODO How to configure caching here? + - name: Run Detekt run: ./gradlew detekt - - name: Stash Ktlint results if: always() run: |