Skip to content

Commit

Permalink
fix ios tests workflo, issue #106 (#107)
Browse files Browse the repository at this point in the history
* fix ios tests workflo, issue #106

* test on iOS 18.0
* return the correct exit code from the build command

* Fix yaml syntax and split up very long lines
  • Loading branch information
RDMurray authored Sep 20, 2024
1 parent aaa51cb commit cefe2db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ jobs:
sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
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
run: >
xcodebuild build-for-testing -workspace apps/ios/GuideDogs.xcworkspace
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15,OS=18.0'
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'
run: >
xcodebuild test-without-building -workspace apps/ios/GuideDogs.xcworkspace
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15,OS=18.0'

0 comments on commit cefe2db

Please sign in to comment.