.github/workflow-templates/ci-mobile-ios.yml

31 lines
1.2 KiB
YAML

name: CI (Mobile / iOS)
on:
pull_request:
branches: [main]
merge_group:
jobs:
select-runner:
# Picks GitHub-hosted while Actions is operational, the org self-hosted
# runner otherwise. See callable-select-runner.yaml for the policy.
uses: Sea-Haven-Industries/.github/.github/workflows/callable-select-runner.yaml@REPLACE-ME # vX.Y.Z
permissions:
actions: read
ci:
# Job id MUST stay `ci`: the reusable's aggregator job is also `ci`, so the
# check context resolves to the required `ci / ci`.
needs: select-runner
uses: Sea-Haven-Industries/.github/.github/workflows/ci-mobile-ios.yaml@REPLACE-ME # vX.Y.Z
with:
runner: ${{ needs.select-runner.outputs.runner }}
# Matches local dev (Node 24 / npm 11, lockfileVersion 3). This is also
# the reusable workflow's default — passed explicitly to pin against drift.
node-version: "24"
# Set these two to the app directory when the mobile project is not at
# the repo root, matching the values passed to cd-mobile-ios.
working-directory: "."
cache-dependency-path: "package-lock.json"
# Off by default: enable once package.json actually declares the script.
run-lint: false
run-tests: false