-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
60 lines (47 loc) · 1.56 KB
/
apps_automated_ios.yml
File metadata and controls
60 lines (47 loc) · 1.56 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
name: 'apps/automated/ios'
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
- 'ci/**'
pull_request:
workflow_dispatch:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-ios:
# runs-on: macos-latest
runs-on: warp-macos-15-arm64-6x
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
# - name: ActionDebugger By Warpbuild
# uses: Warpbuilds/action-debugger@v1.3
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 23.5.0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
with:
main-branch-name: 'main'
- name: Install NativeScript
run: |
npm i -g nativescript --ignore-scripts
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: Start iOS Simulator
uses: futureware-tech/simulator-action@e89aa8f93d3aec35083ff49d2854d07f7186f7f5 # v5
with:
model: 'iPhone 16 Pro'
- name: Run tests on iOS Simulator
run: npx nx test apps-automated -c=ios