mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
ci: tests
This commit is contained in:
27
.github/workflows/apps_automated.yml
vendored
27
.github/workflows/apps_automated.yml
vendored
@ -28,11 +28,30 @@ jobs:
|
|||||||
- name: Setup
|
- name: Setup
|
||||||
run: npm run setup
|
run: npm run setup
|
||||||
|
|
||||||
- name: Create Emulator
|
- name: Download & install the Android SDK
|
||||||
uses: rigor789/action-create-emulator@master
|
uses: malinskiy/action-android/install-sdk@release/0.1.3
|
||||||
|
|
||||||
- name: Test (Android)
|
- name: Set up platform tools like adb
|
||||||
run: node tools/scripts/run-automated.js android
|
run: sdkmanager platform-tools
|
||||||
|
|
||||||
|
- 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)
|
- name: Test (iOS)
|
||||||
if: always() # run iOS tests even if Android tests failed
|
if: always() # run iOS tests even if Android tests failed
|
||||||
|
Reference in New Issue
Block a user