Skip to content

Commit

Permalink
Split out iOS Run Destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-potts committed Dec 3, 2019
1 parent 55641ab commit a9f1115
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,39 @@ jobs:
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=10.3.1,name=iPhone 7',
'platform=iOS Simulator,OS=13.1,name=iPhone 11'
]
steps:
- name: Checkout
uses: actions/checkout@master
- name: iOS - ${{ matrix.destination }}
run: |
pod install
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
bash <(curl -s https://codecov.io/bash)
env:
destination: ${{ matrix.destination }}
- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
iOS-legacy:
name: Test iOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_11.1.app/Contents/Developer
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=10.3.1,name=iPhone 7'
]
steps:
- name: Checkout
uses: actions/checkout@master
- name: iOS - ${{ matrix.destination }}
run: |
xcversion simulators --install='iOS 10.3.1'
xcversion simulators --install='iOS 13.1'
pod install
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
bash <(curl -s https://codecov.io/bash)
Expand All @@ -39,7 +62,6 @@ jobs:
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tvOS:
name: Test tvOS
runs-on: macOS-latest
Expand All @@ -56,7 +78,6 @@ jobs:
uses: actions/checkout@master
- name: tvOS - ${{ matrix.destination }}
run: |
xcversion simulators --install='tvOS 13.0'
pod install
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme "Hero (tvOS)" -destination "${destination}" -parallelizeTargets -showBuildTimingSummary -enableThreadSanitizer YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty
env:
Expand Down

0 comments on commit a9f1115

Please sign in to comment.