Skip to content

.github/workflows/ios-tests.yml: output xcode version #16

.github/workflows/ios-tests.yml: output xcode version

.github/workflows/ios-tests.yml: output xcode version #16

Workflow file for this run

name: ios-tests
on:
push:
branches:
- main
paths:
- 'apps/ios/**'
- '.github/workflows/ios-tests.yml'
pull_request:
branches:
- main
paths:
- 'apps/ios/**'
jobs:
unit-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: setup
run: |
# Find path of latest installed Xcode version
xcode_path="$(ls -d /Applications/Xcode*.app | sort -V | tail -n1)"
echo "Xcode path: ${xcode_path}"
sudo xcode-select -s "${xcode_path}/Contents/Developer"
xcodebuild -version
gem install xcpretty
- name: Build
run: >
xcodebuild build-for-testing -workspace apps/ios/GuideDogs.xcworkspace
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15'
CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
| tee xcodebuild.log | xcpretty && exit ${PIPESTATUS[0]}
- name: uploadlog
uses: actions/upload-artifact@v4
with:
name: xcodebuild-log
path: xcodebuild.log
- name: Test
run: >
xcodebuild test-without-building -workspace apps/ios/GuideDogs.xcworkspace
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15'