From b1b9628508e3987949db7861b35a94fb6b6477a8 Mon Sep 17 00:00:00 2001 From: Maxr1998 Date: Sat, 24 Dec 2022 13:43:49 +0100 Subject: [PATCH] Run detekt and lint in parallel --- .github/workflows/app-lint.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/app-lint.yaml b/.github/workflows/app-lint.yaml index 4030b0e6..37684bb3 100644 --- a/.github/workflows/app-lint.yaml +++ b/.github/workflows/app-lint.yaml @@ -15,6 +15,10 @@ jobs: lint: name: Lint runs-on: ubuntu-22.04 + continue-on-error: true + strategy: + matrix: + task: [ detekt, lint ] steps: - name: Checkout repository uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0 @@ -25,8 +29,8 @@ jobs: java-version: 17 - name: Setup Gradle uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # tag=v2.3.3 - - name: Run detekt and lint tasks - run: ./gradlew detekt lint + - name: Run ${{ matrix.task }} task + run: ./gradlew ${{ matrix.task }} - name: Upload SARIF files uses: github/codeql-action/upload-sarif@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 # v2.1.37 if: ${{ always() }}