mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
ci: warpbuild macOS runners for iOS tests (#10664)
This commit is contained in:
21
.github/workflows/apps_automated_ios.yml
vendored
21
.github/workflows/apps_automated_ios.yml
vendored
@ -14,27 +14,25 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-ios:
|
test-ios:
|
||||||
runs-on: macos-latest
|
# runs-on: macos-latest
|
||||||
|
runs-on: warp-macos-15-arm64-6x
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# - name: ActionDebugger By Warpbuild
|
||||||
|
# uses: Warpbuilds/action-debugger@v1.3
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20.10.0
|
node-version: 23.5.0
|
||||||
|
|
||||||
- name: Install Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3'
|
|
||||||
|
|
||||||
- name: Install NativeScript
|
- name: Install NativeScript
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip six
|
|
||||||
npm i -g nativescript --ignore-scripts --legacy-peer-deps
|
npm i -g nativescript --ignore-scripts --legacy-peer-deps
|
||||||
ns usage-reporting disable
|
ns usage-reporting disable
|
||||||
ns error-reporting disable
|
ns error-reporting disable
|
||||||
ns doctor
|
# ns doctor
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: npm run setup
|
run: npm run setup
|
||||||
@ -43,7 +41,10 @@ jobs:
|
|||||||
run: npx nx run-many --target=test --configuration=ci --projects=core
|
run: npx nx run-many --target=test --configuration=ci --projects=core
|
||||||
|
|
||||||
- name: Start iOS Simulator
|
- name: Start iOS Simulator
|
||||||
uses: futureware-tech/simulator-action@v3
|
uses: futureware-tech/simulator-action@v4
|
||||||
|
with:
|
||||||
|
model: 'iPhone 15'
|
||||||
|
os_version: '17.5'
|
||||||
|
|
||||||
- name: Run tests on iOS Simulator
|
- name: Run tests on iOS Simulator
|
||||||
run: node tools/scripts/run-automated.js ios
|
run: node tools/scripts/run-automated.js ios
|
||||||
|
@ -29,7 +29,14 @@
|
|||||||
"forDevice": false,
|
"forDevice": false,
|
||||||
"prepare": false
|
"prepare": false
|
||||||
},
|
},
|
||||||
"configurations": {}
|
"configurations": {
|
||||||
|
"ios": {
|
||||||
|
"platform": "ios"
|
||||||
|
},
|
||||||
|
"android": {
|
||||||
|
"platform": "android"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"prepare": {
|
"prepare": {
|
||||||
"executor": "@nativescript/nx:prepare",
|
"executor": "@nativescript/nx:prepare",
|
||||||
|
@ -16,7 +16,7 @@ const spawned_process = spawn(
|
|||||||
[
|
[
|
||||||
"nx",
|
"nx",
|
||||||
"run",
|
"run",
|
||||||
`apps-automated:${platform}`,
|
`apps-automated:debug:${platform}`,
|
||||||
// "--log=trace",
|
// "--log=trace",
|
||||||
// `--flags="--log=trace"`,
|
// `--flags="--log=trace"`,
|
||||||
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
"--timeout=600" // 10 minutes, booting avds on CI is very slow...
|
||||||
|
Reference in New Issue
Block a user