Skip to content

Updated github workflows to use script to get iPhone simulator and ne… #36

Updated github workflows to use script to get iPhone simulator and ne…

Updated github workflows to use script to get iPhone simulator and ne… #36

Workflow file for this run

name: Build & Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: macOS-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install
run: pod install
- name: Build & Test
run:
iphone_names=$(xcrun simctl list devices available --json | jq -r '.devices | to_entries[] | .value[] | select(.name | test("^iPhone [0-9]+")) | .name')
latest_iphone=$(echo "$iphone_names" | sort | tail -n 1)
echo "latest_iphone: $latest_iphone"

Check failure on line 24 in .github/workflows/build-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
xcodebuild test -workspace sf-ios.xcworkspace -scheme sf-ios -destination "platform=iOS Simulator,OS=latest,name=$latest_iphone"