mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
40 lines
865 B
YAML
40 lines
865 B
YAML
name: 'apps/automated'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v1
|
|
|
|
- name: Install NativeScript
|
|
run: |
|
|
python -m pip install --upgrade pip six
|
|
npm i -g nativescript --ignore-scripts
|
|
ns usage-reporting disable
|
|
ns error-reporting disable
|
|
ns doctor
|
|
|
|
- name: Setup
|
|
run: npm run setup
|
|
|
|
- name: Create Emulator
|
|
uses: rigor789/action-create-emulator@master
|
|
|
|
- name: Test (Android)
|
|
run: node tools/scripts/run-automated.js android
|
|
|
|
- name: Test (iOS)
|
|
if: always() # run iOS tests even if Android tests failed
|
|
run: node tools/scripts/run-automated.js ios
|