Skip to content

Commit 148bc93

Browse files
committed
Add Docker test
1 parent 5f4a391 commit 148bc93

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ jobs:
3131
ANDROID_API: ${{ matrix.ANDROID_API }}
3232
ANDROID_ARCH: ${{ matrix.ANDROID_ARCH }}
3333
steps:
34+
- name: Checkout tools repo
35+
uses: actions/checkout@v5
36+
with:
37+
repository: amrsa1/Android-Emulator-image
38+
path: Android-Emulator-image
39+
- name: "Launch emulator (Docker)"
40+
timeout-minutes: 20
41+
working-directory: Android-Emulator-image
42+
run: |
43+
docker build \
44+
--build-arg ARCH=x86_64 \
45+
--build-arg TARGET=google_apis_playstore\
46+
--build-arg API_LEVEL=31 \
47+
--build-arg BUILD_TOOLS=31.0.0 \
48+
--build-arg EMULATOR_DEVICE="Nexus 6" \
49+
--build-arg EMULATOR_NAME=nexus \
50+
-t my-android-image .
51+
docker exec --privileged -it -e EMULATOR_TIMEOUT=300 androidContainer bash -c "./start_emu_headless.sh"
52+
adb shell 'echo Hello World'
53+
3454
- name: "Launch emulator"
3555
timeout-minutes: 10
3656
run: |

0 commit comments

Comments
 (0)