Skip to content

Commit

Permalink
update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CampelloManuel committed Dec 14, 2023
1 parent 8e1e285 commit c4723b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
# test on emulators with these Android API versions.
# api-level: [ 23, 25, 27, 29, 31, 33 ] # test on 6 versions, from minSdk to targetSdk
api-level: [ 30, 34 ] # test on 2 api versions that have ATD images
api-level: [ 30, 32, 34 ] # test on 3 api versions that have ATD images
# target: [ default, google_apis ] # user-friendly OS images without, or with, google apps
target: [ aosp_atd, google_atd ] # test-friendly OS images without, or with, google apps
# profile: [ 5.1in WVGA, 10.1in WXGA ] # TODO you can also test with phones and tablets!
Expand All @@ -29,6 +29,8 @@ jobs:
target: default
- api-level: 27
target: google_apis
- api-level: 34
target: google_atd
# Windows is unsupported. Ubuntu is slow so the emulators crash. List of installed software:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
runs-on: macos-latest
Expand Down Expand Up @@ -99,11 +101,12 @@ jobs:
- name: run custom tasks for additional checks
run: ./gradlew checkLanguages checkFastlane

- name: install ffmpeg
run: brew install ffmpeg
# useless, since the ATD images have a black screen
# - name: install ffmpeg
# run: brew install ffmpeg

- name: check ffmpeg
run: ffmpeg -version
# - name: check ffmpeg
# run: ffmpeg -version

- name: make the emulator script executable
run: chmod +x github_on_emu_started.sh
Expand Down
2 changes: 0 additions & 2 deletions github_on_emu_started.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ function getScreenStreamFromEmu() {
done
}

# TODO android API 32 images have a built-in screen record feature that can make long videos, but you have to start it from the top drawer menu. Check if API 23 has it, and try to use it with ADB. Videos are saved on /sdcard/movies/ then you have to pull them with adb

# save the video stream to a file
{ getScreenStreamFromEmu | ffmpeg -i - -s 480x854 -loglevel error \
-nostats -hide_banner -framerate 15 -bufsize 1M emu-video.mp4 ; } &
Expand Down

0 comments on commit c4723b7

Please sign in to comment.