From c67f5e19bfe660d29caa43fac2179c20e6c684b7 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sat, 30 Jul 2022 20:54:02 -0700 Subject: [PATCH] ci: tests --- .github/workflows/apps_automated.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/apps_automated.yml b/.github/workflows/apps_automated.yml index 308016526..206a42812 100644 --- a/.github/workflows/apps_automated.yml +++ b/.github/workflows/apps_automated.yml @@ -27,12 +27,31 @@ jobs: - name: Setup run: npm run setup + + - name: Download & install the Android SDK + uses: malinskiy/action-android/install-sdk@release/0.1.3 - - name: Create Emulator - uses: rigor789/action-create-emulator@master + - name: Set up platform tools like adb + run: sdkmanager platform-tools - - name: Test (Android) - run: node tools/scripts/run-automated.js android + - name: Start ADB and verify that pathing is working correctly + run: adb devices + + - name: Verify $ANDROID_HOME is properly set for later Gradle commands. + run: echo $ANDROID_HOME + + - name: Start Emulator + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: node tools/scripts/run-automated.js android + + - name: Start iOS Simulator + if: always() # run iOS tests even if Android tests failed + uses: futureware-tech/simulator-action@v1 + with: + model: 'iPhone 13 Pro' + os_version: '>=15.0' - name: Test (iOS) if: always() # run iOS tests even if Android tests failed