forked from mongodb/docs-realm
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 879 Bytes
/
ios.yml
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
name: iOS CI Realm Example App
on:
pull_request:
paths:
- "examples/ios/Examples/**"
jobs:
build:
name: Run iOS Example App Tests
runs-on: macOS-13
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15.0.1"
- name: Build
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
cd examples/ios
xcodebuild build-for-testing -scheme "Test Examples" -destination "platform=iOS Simulator,name=iPhone 15 Pro"
- name: Test
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
cd examples/ios
xcodebuild test-without-building -scheme "Test Examples" -destination "platform=iOS Simulator,name=iPhone 15 Pro"