File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,15 @@ jobs:
83
83
max_attempts : 3
84
84
command : DETOX_DISABLE_POSTINSTALL=1 yarn --no-audit --prefer-offline
85
85
86
- - name : Verify JDK 1.8
87
- # OpenJDK1.8 is the default in GitHub macOS 10.15 runner, setup is not required
88
- # Run a check that exits with error unless it is 1.8 version to future-proof against unexpected upgrades
89
- run : java -fullversion 2>&1 | grep '1.8'
86
+ - name : Configure JDK 1.11
87
+ uses : actions/setup-java@v1
88
+ with :
89
+ java-version : " 11" # ubuntu-latest is about to default to 11, force it everywhere
90
+
91
+ - name : Verify JDK11
92
+ # Default JDK varies depending on different runner flavors, make sure we are on 11
93
+ # Run a check that exits with error unless it is 11 version to future-proof against unexpected upgrades
94
+ run : java -fullversion 2>&1 | grep '11.0'
90
95
shell : bash
91
96
92
97
- name : Build Android App
@@ -117,10 +122,10 @@ jobs:
117
122
timeout_minutes : 10
118
123
retry_wait_seconds : 60
119
124
max_attempts : 3
120
- command : echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-30;google_apis;x86_64"
125
+ command : echo "y" | $ANDROID_HOME/cmdline- tools/latest /bin/sdkmanager --install "system-images;android-30;google_apis;x86_64"
121
126
122
127
- name : Create Emulator
123
- run : echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd --force --name TestingAVD --device "Nexus 5X" -k 'system-images;android-30;google_apis;x86_64' -g google_apis
128
+ run : echo "no" | $ANDROID_HOME/cmdline- tools/latest /bin/avdmanager create avd --force --name TestingAVD --device "Nexus 5X" -k 'system-images;android-30;google_apis;x86_64' -g google_apis
124
129
125
130
# These Emulator start steps are the current best practice to do retries on multi-line commands with persistent (nohup) processes
126
131
- name : Start Android Emulator
You can’t perform that action at this time.
0 commit comments