Skip to content

Commit b9f3561

Browse files
Fix Instrumentation tests failing in Build and Test workflow
actions/setup-java@v1.4.3 was resolving java-version: 17 through the deprecated AdoptOpenJDK API. Between Apr 21 and Apr 22 that resolution shifted from 17.0.18 to 17.0.19, and the artifact returned for 17.0.19 makes sdkmanager exit immediately, breaking the emulator-runner action's Install Android SDK step on every run since. Upgrade setup-java to v4.8.0 with distribution: temurin so the JDK is pinned to a deterministic Adoptium Temurin build, and replace the deprecated gradle/wrapper-validation-action with gradle/actions/wrapper-validation@v4. Applied to all three jobs (check, unit-tests, instrumentation-tests). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 682683c commit b9f3561

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1414

1515
- name: Validate Gradle Wrapper
16-
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
16+
uses: gradle/actions/wrapper-validation@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
1717

1818
- name: Configure JDK
19-
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
19+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
2020
with:
21-
java-version: 17
21+
distribution: temurin
22+
java-version: '17'
2223

2324
- run: touch local.properties
2425

@@ -36,12 +37,13 @@ jobs:
3637
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3738

3839
- name: Validate Gradle Wrapper
39-
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
40+
uses: gradle/actions/wrapper-validation@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
4041

4142
- name: Configure JDK
42-
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
43+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
4344
with:
44-
java-version: 17
45+
distribution: temurin
46+
java-version: '17'
4547

4648
- run: touch local.properties
4749

@@ -66,12 +68,13 @@ jobs:
6668
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6769

6870
- name: Validate Gradle Wrapper
69-
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 # v3.3.2
71+
uses: gradle/actions/wrapper-validation@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
7072

7173
- name: Configure JDK
72-
uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
74+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
7375
with:
74-
java-version: 17
76+
distribution: temurin
77+
java-version: '17'
7578

7679
- run: touch local.properties
7780

0 commit comments

Comments
 (0)