|
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
# - name: ActionDebugger By Warpbuild |
|
# uses: Warpbuilds/action-debugger@v1.3 |
|
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.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 |