feat: default tracking options, auto-track application lifecycle events #266
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Xcode 14 | |
run: | | |
sudo xcode-select -switch /Applications/Xcode_14.1.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 14' | |
- 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 |