Skip to content

Commit baced67

Browse files
authored
ci: warpbuild macOS runners for iOS tests (#10664)
1 parent fd053df commit baced67

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.github/workflows/apps_automated_ios.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,25 @@ concurrency:
1414

1515
jobs:
1616
test-ios:
17-
runs-on: macos-latest
17+
# runs-on: macos-latest
18+
runs-on: warp-macos-15-arm64-6x
1819

1920
steps:
2021
- uses: actions/checkout@v4
2122

22-
- uses: actions/setup-node@v4
23-
with:
24-
node-version: 20.10.0
23+
# - name: ActionDebugger By Warpbuild
24+
# uses: Warpbuilds/action-debugger@v1.3
2525

26-
- name: Install Python
27-
uses: actions/setup-python@v4
26+
- uses: actions/setup-node@v4
2827
with:
29-
python-version: '3'
28+
node-version: 23.5.0
3029

3130
- name: Install NativeScript
3231
run: |
33-
python3 -m pip install --upgrade pip six
3432
npm i -g nativescript --ignore-scripts --legacy-peer-deps
3533
ns usage-reporting disable
3634
ns error-reporting disable
37-
ns doctor
35+
# ns doctor
3836
3937
- name: Setup
4038
run: npm run setup
@@ -43,7 +41,10 @@ jobs:
4341
run: npx nx run-many --target=test --configuration=ci --projects=core
4442

4543
- name: Start iOS Simulator
46-
uses: futureware-tech/simulator-action@v3
44+
uses: futureware-tech/simulator-action@v4
45+
with:
46+
model: 'iPhone 15'
47+
os_version: '17.5'
4748

4849
- name: Run tests on iOS Simulator
4950
run: node tools/scripts/run-automated.js ios

apps/automated/project.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@
2929
"forDevice": false,
3030
"prepare": false
3131
},
32-
"configurations": {}
32+
"configurations": {
33+
"ios": {
34+
"platform": "ios"
35+
},
36+
"android": {
37+
"platform": "android"
38+
}
39+
}
3340
},
3441
"prepare": {
3542
"executor": "@nativescript/nx:prepare",

tools/scripts/run-automated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const spawned_process = spawn(
1616
[
1717
"nx",
1818
"run",
19-
`apps-automated:${platform}`,
19+
`apps-automated:debug:${platform}`,
2020
// "--log=trace",
2121
// `--flags="--log=trace"`,
2222
"--timeout=600" // 10 minutes, booting avds on CI is very slow...

0 commit comments

Comments
 (0)