fix: Copy extra params to prevent deallocation #792
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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
ruby-version: ["2.7.x"] | |
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: actions/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install Cocoapods | |
run: | | |
gem install bundler | |
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 | |
run: | | |
xcodebuild \ | |
-workspace Amplitude.xcworkspace \ | |
-scheme Amplitude_tvOS \ | |
-sdk appletvsimulator \ | |
-destination 'platform=tvOS Simulator,name=Apple TV' \ | |
test |