Skip to content

Commit

Permalink
ci(detox-android): patch java version for sdk manager
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-pearson-mattr committed Dec 5, 2024
1 parent aa4a552 commit 1aaa7da
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci-detox-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ jobs:
working-directory: wrappers/react-native/example
run: yarn install --frozen-lockfile

- name: Set up Java
- name: Set up Java 17 Required Android SDK manager
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin" # Compatible with Android SDK
java-version: "17"
distribution: "temurin"

- name: Set up Android SDK
uses: android-actions/setup-android@v2
Expand All @@ -119,6 +119,14 @@ jobs:
- name: Verify Android tools
run: sdkmanager --list

# Use Java 11 still has LTS
- name: Set up Java 11 to build and test
uses: actions/setup-java@v3
with:
# Compatible with Android SDK
java-version: "11"
distribution: "temurin"

- name: Start Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
Expand Down

0 comments on commit 1aaa7da

Please sign in to comment.