forked from NativeScript/NativeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (51 loc) · 1.6 KB
/
apps_automated.yml
File metadata and controls
65 lines (51 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 'apps/automated'
on:
push:
branches:
- main
- 'ci/**'
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3'
- name: Install NativeScript
run: |
python3 -m pip install --upgrade pip six
npm i -g nativescript --ignore-scripts --legacy-peer-deps
ns usage-reporting disable
ns error-reporting disable
ns doctor
- name: Setup
run: npm run setup
- name: Unit Tests
run: npx nx run-many --target=test --configuration=ci --projects=core
- name: Create Emulator
uses: rigor789/action-create-emulator@main
- name: Test (Android)
run: node tools/scripts/run-automated.js android
- name: Start iOS Simulator
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
uses: futureware-tech/simulator-action@v2
with:
model: 'iPhone 13 Pro Max'
os_version: '>=15.0'
- name: Test (iOS)
if: ${{ always() && !cancelled() }} # run iOS tests even if Android tests failed
run: node tools/scripts/run-automated.js ios