ci: tests

This commit is contained in:
Nathan Walker
2022-07-30 20:54:02 -07:00
parent d82f3d990d
commit c67f5e19bf

View File

@ -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