fix(ci): cache Robolectric's Android jars so Maven Central 429s stop failing unit tests (#3127)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-24 00:46:03 -05:00
1 parent 9b800ceb5e
commit 309893b722
1 file changed
+10
+10
View File
@@ -692,6 +692,16 @@ jobs:
if-no-files-found: ignore
overwrite: true
- name: Resolve the Robolectric version
id: robolectric
run: |
echo "version=$(grep -o "org.robolectric:robolectric:[0-9.]*" app/build.gradle | cut -d: -f3)" >> "$GITHUB_OUTPUT"
# Robolectric downloads these from Maven Central on first use without retrying, and 429s fail whole test classes.
- name: Cache Robolectric's Android jars
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/robolectric/android-all-instrumented
key: robolectric-android-all-${{ steps.robolectric.outputs.version }}
- name: Unit tests
id: unit-tests
env: