Skip to content

Commit

Permalink
Run static analysis in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
cmelchior committed Jun 16, 2022
1 parent be45ad5 commit 3ac28e0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/include_static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

jobs:
static-analysis:
ktlint:
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3ac28e0

Please sign in to comment.