.github/workflows/ios-tests.yml: output xcode version #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |