-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI - Add GitHub test/build workflows
Signed-off-by: Joseph Mattiello <mail@joemattiello.com> Signed-off-by: Joe Mattiello <git@joemattiello.com>
- Loading branch information
Showing
3 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
name: Build | ||
jobs: | ||
test: | ||
name: Build | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
destination: [ | ||
'platform=iOS Simulator,OS=12.4,name=iPhone X', | ||
'platform=tvOS Simulator,OS=12.4,name=Apple TV 4'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Build | ||
run: | | ||
pod install | ||
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | ||
env: | ||
destination: ${{ matrix.destination }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
on: pull_request | ||
name: Test | ||
jobs: | ||
iOS: | ||
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.2,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 }} | ||
|
||
tvOS: | ||
name: Test tvOS | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
destination: [ | ||
'platform=tvOS Simulator,OS=13.0,name=Apple TV 4K' | ||
] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: tvOS - ${{ matrix.destination }} | ||
run: | | ||
pod install | ||
set -o pipefail && xcodebuild clean build -workspace Hero.xcworkspace -scheme "Hero (tvOS)" -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 }} |
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