Skip to content

Commit

Permalink
switch to Anton Malinskiy's GH actions, use appropriate SDK version f…
Browse files Browse the repository at this point in the history
…or JDK8
  • Loading branch information
bartekpacia committed Aug 2, 2024
1 parent 03fd690 commit 7acb5e1
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
env:
EMULATOR_API_LEVEL: 33
EMULATOR_TARGET: google_apis
EMULATOR_ARCH: x86_64
EMULATOR_ARCH: x86

steps:
- name: Enable KVM group perms
Expand Down Expand Up @@ -75,12 +75,28 @@ jobs:
maestro --help
maestro --version
- name: Set up Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.7
with:
url: https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip
# 8.0, last compatible with Java

- uses: malinskiy/action-android/emulator-run-cmd@release/0.1.7
with:
api: ${{ env.EMULATOR_API_LEVEL }}
tag: ${{ env.EMULATOR_TARGET }}
abi: ${{ env.EMULATOR_ARCH }}
cmd: |
./download_apps
./install_apps
./run_tests
- name: Start emulator and run a Flow
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.EMULATOR_API_LEVEL }}
api-level:
target: ${{ env.EMULATOR_TARGET }}
arch: ${{ env.EMULATOR_ARCH }}
arch:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
Expand All @@ -89,6 +105,13 @@ jobs:
./download_apps
./install_apps
./run_tests
- name: Save logcat output
uses: actions/upload-artifact@v4
if: failure()
with:
name: logcat
path: artifacts/logcat.log

test-cloud:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7acb5e1

Please sign in to comment.