From 4156acf297795adcefb95900ea7528b3c66e554a Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Sun, 12 Apr 2026 15:18:02 -0500 Subject: [PATCH] ci: fix Gradle cache path validation warning for Robolectric jars (#5093) --- .github/actions/gradle-setup/action.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/actions/gradle-setup/action.yml b/.github/actions/gradle-setup/action.yml index 3753210b8..a42959190 100644 --- a/.github/actions/gradle-setup/action.yml +++ b/.github/actions/gradle-setup/action.yml @@ -27,19 +27,14 @@ runs: distribution: ${{ inputs.jdk_distribution }} token: ${{ github.token }} - # Robolectric downloads instrumented SDK jars from Maven Central at test time. - # Cache them to avoid flaky SocketException failures on CI runners. - # Update the key when bumping robolectric version in libs.versions.toml or sdk in robolectric.properties. - - name: Cache Robolectric SDK jars - uses: actions/cache@v5 - with: - path: ~/.m2/repository/org/robolectric - key: robolectric-4.16.1-sdk34 - - name: Setup Gradle uses: gradle/actions/setup-gradle@v6 with: cache-read-only: ${{ inputs.cache_read_only }} cache-encryption-key: ${{ inputs.gradle_encryption_key }} cache-cleanup: on-success - add-job-summary: always \ No newline at end of file + add-job-summary: always + gradle-home-cache-includes: | + caches + notifications + ~/.m2/repository/org/robolectric \ No newline at end of file