From eb042024104ca9ff6271f595f0699d5ea2c4435b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 30 Aug 2022 22:08:46 +0530 Subject: Enable new gradle-home-cache-cleanup option (#2096) --- .github/workflows/pull_request.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to '.github/workflows/pull_request.yml') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c8172767..02aec897 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -43,13 +43,14 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: spotlessCheck + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ unit-tests: runs-on: ubuntu-latest @@ -84,6 +85,7 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: test -PslimTests + gradle-home-cache-cleanup: true - name: (Fail-only) Upload test report if: "${{ failure() }}" @@ -96,8 +98,8 @@ jobs: if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ build-apks: runs-on: ubuntu-latest @@ -132,13 +134,14 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: assembleFreeDebug assembleNonFreeDebug + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ check-api: runs-on: ubuntu-latest @@ -173,13 +176,14 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: apiCheck + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ lint-debug: runs-on: ubuntu-latest @@ -214,13 +218,14 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: lintDebug + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ assemble-release-apks: runs-on: ubuntu-latest @@ -255,13 +260,14 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: aNFR + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" uses: actions/upload-artifact@v3.1.0 with: - name: Build report - path: build/reports/kotlin-build/ + name: Build report + path: build/reports/kotlin-build/ detekt: runs-on: ubuntu-latest @@ -296,6 +302,7 @@ jobs: uses: gradle/gradle-build-action@v2.3.0 with: arguments: detekt + gradle-home-cache-cleanup: true - name: Upload Kotlin build report if: "${{ always() }}" -- cgit v1.2.3