-
Notifications
You must be signed in to change notification settings - Fork 14
85 lines (74 loc) · 2.34 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Xcode 15.4
run: |
sudo xcode-select -switch /Applications/Xcode_15.4.app
- name: iOS Build
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5'
- name: macOS Build
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk macosx \
-destination 'platform=macosx' \
- name: tvOS Build
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk appletvsimulator \
-destination 'platform=tvOS Simulator,name=Apple TV' \
- name: visionOS Build
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk xrsimulator \
-destination 'platform=visionOS Simulator,name=Apple Vision Pro' \
- name: iOS Tests
run: |
xcodebuild test \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 12,OS=15.5'
- name: macOS Tests
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk macosx \
-destination 'platform=macosx' \
test
- name: tvOS Tests
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk appletvsimulator \
-destination 'platform=tvOS Simulator,name=Apple TV' \
test
- name: visionOS Tests
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk xrsimulator \
-destination 'platform=visionOS Simulator,name=Apple Vision Pro' \
test