mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
ci: tests
This commit is contained in:
27
.github/workflows/apps_automated.yml
vendored
27
.github/workflows/apps_automated.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user