Skip to content

Commit

Permalink
.github/workflows/ios-tests.yml: automatically use the latest MacOS i…
Browse files Browse the repository at this point in the history
…mage and version of Xcode
  • Loading branch information
RDMurray committed Nov 13, 2024
1 parent 6ae5ea5 commit a898769
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ on:
- 'apps/ios/**'
jobs:
unit-tests:
runs-on: macos-14
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: setup
run: |
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
# Find path of latest installed Xcode version
xcode_path="$(ls -d /Applications/Xcode*.app | sort -V | tail -n1)"
sudo xcode-select -s "${xcode_path}/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,OS=18.1'
-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
Expand All @@ -34,4 +36,4 @@ jobs:
- name: Test
run: >
xcodebuild test-without-building -workspace apps/ios/GuideDogs.xcworkspace
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15,OS=18.0'
-scheme Soundscape -destination 'platform=iOS Simulator,name=iPhone 15'

0 comments on commit a898769

Please sign in to comment.