-
Notifications
You must be signed in to change notification settings - Fork 107
53 lines (43 loc) · 1.51 KB
/
ios-tests.yml
File metadata and controls
53 lines (43 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: iOS CI
on: [push, pull_request]
env:
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}
jobs:
build:
name: Xcode ${{ matrix.osx_image }} - iOS ${{ matrix.os_version }}
runs-on: macos-latest
strategy:
matrix:
include:
- osx_image: xcode13.2
xcode_version: '13.2'
ios_name: 'iPhone 8'
os_version: '15.2'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ruby (for CocoaPods)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Install CocoaPods
run: sudo gem install cocoapods
- name: Setup test cloud URL
run: |
echo "Setting CLOUDINARY_URL from tools/get_test_cloud.sh"
echo "CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)" >> $GITHUB_ENV
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
- name: Install Pods
working-directory: Example
run: pod install
- name: Run Xcode build and tests
run: |
xcodebuild test \
-workspace Example/Cloudinary.xcworkspace \
-scheme travis_public_scheme \
-destination "platform=iOS Simulator,OS=${{ matrix.os_version }},name=${{ matrix.ios_name }}" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Send notification (if desired)
if: failure()
run: |
echo "Notify sdk_developers@cloudinary.com of failure (implement via webhook/email API if needed)"