-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (42 loc) · 1.16 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
name: iOS starter workflow
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
buildAndTest:
name: Build and Test
strategy:
matrix:
include:
# Only using "latest" CI for the moment.
# We'll decide later whether to keep running tests on older environments
#
# - macos: "macos-10.15"
# xcode: "11.6"
# ios: "13.6"
# iphone: "iPhone 11"
# - macos: "macos-11"
# xcode: "12.4"
# ios: "14.4"
# iphone: "iPhone 12"
- macos: "macos-12"
xcode: "14.1"
ios: "16.1"
iphone: "iPhone 14"
runs-on: ${{ matrix.macos }}
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Build and Test
run: |
xcodebuild test \
-project Demo/ParselyDemo.xcodeproj \
-scheme ParselyDemo \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
| xcpretty \
&& exit ${PIPESTATUS[0]}