-
Notifications
You must be signed in to change notification settings - Fork 23
57 lines (55 loc) · 1.58 KB
/
unit-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
name: Unit Test
on:
pull_request:
push:
branches:
- main
- 1.1.x
jobs:
test:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Xcode 15
run: |
sudo xcode-select -switch /Applications/Xcode_15.2.app
- name: List Simulators
run: |
xcrun simctl list
- name: List Project Configuration
run: |
xcodebuild -list
- name: iOS Tests
run: |
xcodebuild test \
-scheme Amplitude-Swift-Package \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15'
- name: macOS Tests
run: |
xcodebuild test \
-scheme Amplitude-Swift-Package \
-sdk macosx \
-destination 'platform=macosx'
- name: tvOS Tests
run: |
xcodebuild \
-scheme Amplitude-Swift-Package \
-sdk appletvsimulator \
-destination 'platform=tvOS Simulator,name=Apple TV' \
test
- name: watchOS Tests
run: |
xcodebuild \
-scheme Amplitude-Swift-Package \
-sdk watchsimulator \
-destination 'platform=watchOS Simulator,name=Apple Watch Series 8 (41mm)' \
test
- name: Objective-C Example Tests (iOS)
working-directory: Examples/AmplitudeObjCExample
run: |
xcodebuild test \
-scheme AmplitudeObjCExample \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15'