mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ci: run apps/automated on CI (#9196)
This commit is contained in:
39
.github/workflows/apps_automated.yml
vendored
Normal file
39
.github/workflows/apps_automated.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
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
|
||||
Reference in New Issue
Block a user