Skip to content

Commit

Permalink
Update CI to use current iOS sdk (HeroTransitions#648)
Browse files Browse the repository at this point in the history
* Set CI to install sdks

* Split out iOS Run Destinations
  • Loading branch information
nick-potts committed Dec 16, 2019
1 parent 683c7d0 commit 6ed49eb
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "**.h"
- "**.podspec"
- "Podfile"

- "test.yml"
jobs:
iOS:
name: Test iOS
Expand All @@ -19,7 +19,6 @@ jobs:
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=10.2,name=iPhone 7',
'platform=iOS Simulator,OS=13.1,name=iPhone 11'
]
steps:
Expand All @@ -37,7 +36,32 @@ jobs:
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'
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 }}
tvOS:
name: Test tvOS
runs-on: macOS-latest
Expand Down

0 comments on commit 6ed49eb

Please sign in to comment.