Skip to content

Commit e618f44

Browse files
Update unit-and-instrumented-tests-action.yml
1 parent c596d11 commit e618f44

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/unit-and-instrumented-tests-action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ jobs:
3636
- name: Checkout
3737
uses: actions/checkout@v3
3838
# create an emulator with google apis, runs on java 8
39-
- name: Create Android emulator
39+
- name: Setup java 8 for emulator
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: ${{ env.JAVA_DISTRIBUTION }}
43+
java-version: ${{ env.JAVA_VERSION }}
44+
- name: Create Android emulator
4045
run: |
41-
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH
42-
echo which sdkmanager
43-
echo sdkmanager --version
4446
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --licenses
4547
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-"$API_CURRENT";google_apis_playstore;x86_64"
4648
echo "no" | $ANDROID_HOME/tools/bin/avdmanager list device

0 commit comments

Comments
 (0)