From cefe2db52f98094f0ec8989dee9f7d928f69145f Mon Sep 17 00:00:00 2001 From: RDMurray Date: Fri, 20 Sep 2024 18:11:49 +0100 Subject: [PATCH] fix ios tests workflo, issue #106 (#107) * 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 --- .github/workflows/ios-tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-tests.yml b/.github/workflows/ios-tests.yml index 6be50281..968fc137 100644 --- a/.github/workflows/ios-tests.yml +++ b/.github/workflows/ios-tests.yml @@ -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'