Skip to content

Commit 035d247

Browse files
committed
Update matrix
1 parent 1594ade commit 035d247

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

.github/workflows/ios-tests.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
jobs:
99
build:
1010
name: Xcode ${{ matrix.osx_image }} - iOS ${{ matrix.os_version }}
11-
runs-on: macos-latest
11+
runs-on: macos-13
1212
strategy:
1313
matrix:
1414
include:
@@ -26,28 +26,40 @@ jobs:
2626
with:
2727
ruby-version: 3.2
2828

29+
- name: Select Xcode version
30+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer
31+
2932
- name: Install CocoaPods
3033
run: sudo gem install cocoapods
3134

32-
- name: Setup test cloud URL
35+
- name: Setup CLOUDINARY_URL
3336
run: |
34-
echo "Setting CLOUDINARY_URL from tools/get_test_cloud.sh"
3537
echo "CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)" >> $GITHUB_ENV
3638
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
3739
40+
- name: Clean Derived Data
41+
run: rm -rf ~/Library/Developer/Xcode/DerivedData
42+
3843
- name: Install Pods
3944
working-directory: Example
4045
run: pod install
4146

42-
- name: Run Xcode build and tests
47+
- name: Build for Testing
4348
run: |
44-
xcodebuild test \
49+
xcodebuild build-for-testing \
4550
-workspace Example/Cloudinary.xcworkspace \
4651
-scheme travis_public_scheme \
4752
-destination "platform=iOS Simulator,OS=${{ matrix.os_version }},name=${{ matrix.ios_name }}" \
48-
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
53+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
4954
50-
- name: Send notification (if desired)
51-
if: failure()
55+
- name: Run Tests
5256
run: |
53-
echo "Notify sdk_developers@cloudinary.com of failure (implement via webhook/email API if needed)"
57+
xcodebuild test-without-building \
58+
-workspace Example/Cloudinary.xcworkspace \
59+
-scheme travis_public_scheme \
60+
-destination "platform=iOS Simulator,OS=${{ matrix.os_version }},name=${{ matrix.ios_name }}" \
61+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
62+
63+
- name: Notify on Failure
64+
if: failure()
65+
run: echo "Notify sdk_developers@cloudinary.com of failure"

0 commit comments

Comments
 (0)