Separate testableView method (1.13.1) #17
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_ios: | |
name: Test iOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare | |
run: gem install xcpretty | |
- name: Test | |
run: | | |
device=`xcrun simctl list devices available | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` | |
xcodebuild test -destination "name=$device" -scheme 'MMMTestCase' | xcpretty | |
build_tvos: | |
name: Test tvOS | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare | |
run: gem install xcpretty | |
- name: Test | |
run: | | |
device=`xcrun simctl list devices available | grep -oE 'Apple TV.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` | |
xcodebuild test -destination "name=$device" -scheme 'MMMTestCase' | xcpretty |