Skip to content
Prev Previous commit
Next Next commit
Update build_and_test.yml
  • Loading branch information
petertrr authored Feb 3, 2024
commit 3f86cd612a72247f196ab643691fc5a0b9e86254
9 changes: 3 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
gradle-version: wrapper
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: build and test
run: ./gradlew check build -x detekt -Pdetekt.multiplatform.disabled=true --scan --configuration-cache
run: ./gradlew check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
- name: Upload test reports
if: ${{ failure() }} # runs only if previous step has failed, the entire workflow will still be marked as failed
uses: actions/upload-artifact@v4
Expand All @@ -43,11 +43,8 @@ jobs:
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}

- uses: gradle/gradle-build-action@v2
name: run detekt
with:
arguments: check -Pdetekt.multiplatform.disabled=false -PdetektAutoCorrect=true
gradle-version: wrapper
- name: run detekt
run: ./gradlew check -Pdetekt.multiplatform.disabled=false -PdetektAutoCorrect=true
- run: git status && git diff
if: ${{ always() }}
- uses: reviewdog/action-suggester@v1
Expand Down