mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
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@v4
|
|
|
|
# - name: ActionDebugger By Warpbuild
|
|
# uses: Warpbuilds/action-debugger@v1.3
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 23.5.0
|
|
|
|
- name: Derive appropriate SHAs for base and head for `nx affected` commands
|
|
uses: nrwl/nx-set-shas@v4
|
|
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@v4
|
|
with:
|
|
model: 'iPhone 16 Pro'
|
|
os_version: '18.4'
|
|
|
|
- name: Run tests on iOS Simulator
|
|
run: npx nx test apps-automated -c=ios
|