File tree Expand file tree Collapse file tree
actions/artifact-android-emulator-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,16 +25,19 @@ runs:
2525 with :
2626 name : local-snapshot
2727 path : ~/.m2/repository/com/google/dagger
28- - name : ' Install Java ${{ env.USE_JAVA_VERSION }}'
28+ # JDK 17+ is required for com.android.sdklib.tool.sdkmanager.SdkManagerCli
29+ - name : ' Install Java ${{ env.USE_JAVA_VERSION_FOR_PLUGIN }}'
2930 uses : actions/setup-java@v3
3031 with :
3132 distribution : ' ${{ env.USE_JAVA_DISTRIBUTION }}'
32- java-version : ' ${{ env.USE_JAVA_VERSION }}'
33+ java-version : ' ${{ env.USE_JAVA_VERSION_FOR_PLUGIN }}'
3334 - name : ' Gradle Android emulator tests (API ${{ inputs.api-level }})'
3435 uses : reactivecircus/android-emulator-runner@v2
3536 with :
3637 api-level : ${{ inputs.api-level }}
3738 target : google_apis
39+ force-avd-creation : false
40+ avd-name : ' macOS-avd-sdk${{ inputs.api-level }}'
3841 script : ./util/run-local-emulator-tests.sh
3942 - name : ' Upload test reports (API ${{ inputs.api-level }})'
4043 if : ${{ always() }}
Original file line number Diff line number Diff line change 8484 name : ' Artifact Android emulator tests (API ${{ matrix.api-level }})'
8585 # We only run this on master push (essentially a postsubmit) since these
8686 # can take a while to run
87- if : github.event_name == 'push' && github.repository == 'google/dagger' && github.ref == 'refs/heads/master'
87+ # if: github.event_name == 'push' && github.repository == 'google/dagger' && github.ref == 'refs/heads/master'
8888 needs : bazel-build
8989 # It's recommended to run emulator tests on macOS
9090 # See https://github.com/marketplace/actions/android-emulator-runner
You can’t perform that action at this time.
0 commit comments