-
Notifications
You must be signed in to change notification settings - Fork 194
62 lines (52 loc) · 1.61 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
name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: macos-12
strategy:
matrix:
ruby-version: ["2.7"]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set Xcode 14
run: |
sudo xcode-select -switch /Applications/Xcode_14.1.app
- name: Carthage Bootstrap
run: carthage bootstrap --use-xcframeworks
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install Cocoapods
run: |
gem install bundler -v 2.4.22
bundle config path vendor/bundle
bundle install
pod install
- name: Validate Podfile
run: pod lib lint
- name: iOS Tests
run: |
xcodebuild test \
-workspace Amplitude.xcworkspace \
-scheme Amplitude_iOSTests \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14'
# - name: macOS Tests @TODO Fix flaky macOS tests and re-enable
# run: |
# xcodebuild \
# -workspace Amplitude.xcworkspace \
# -scheme Amplitude_macOS \
# -sdk macosx \
# -destination 'platform=macosx' \
# test
# - name: tvOS Tests @TODO Fix flaky tvOS tests and re-enable
# run: |
# xcodebuild \
# -workspace Amplitude.xcworkspace \
# -scheme Amplitude_tvOS \
# -sdk appletvsimulator \
# -destination 'platform=tvOS Simulator,name=Apple TV' \
# test