Do not swizzle a subclass of an already swizzled class #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: iOS CI | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
jobs: | |
build: | |
name: Build and Test using any available iPhone simulator | |
runs-on: macos-latest | |
steps: | |
- name: Checkout OneSignal-iOS-SDK | |
uses: actions/checkout@v3 | |
- name: Set Default Scheme | |
run: | | |
default="UnitTestApp" | |
echo $default | cat >default | |
echo Using default scheme: $default | |
- name: Build | |
env: | |
scheme: ${{ 'UnitTestApp' }} | |
platform: ${{ 'iOS Simulator' }} | |
file_to_build: ${{ 'iOS_SDK/OneSignalSDK/OneSignal.xcodeproj' }} | |
filetype_parameter: ${{ 'project' }} | |
run: | | |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) | |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` | |
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" | |
- name: Test | |
env: | |
scheme: ${{ 'UnitTestApp' }} | |
platform: ${{ 'iOS Simulator' }} | |
file_to_build: ${{ 'iOS_SDK/OneSignalSDK/OneSignal.xcodeproj' }} | |
filetype_parameter: ${{ 'project' }} | |
run: | | |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) | |
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` | |
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" -resultBundlePath TestResults | |
- name: Analyze Tests | |
uses: kishikawakatsumi/xcresulttool@v1 | |
with: | |
path: TestResults.xcresult | |
show-passed-tests: false | |
if: success() || failure() | |
- name: Run Swift Lint | |
run: | | |
swiftlint |