-
-
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.
- Loading branch information
Showing
120 changed files
with
248 additions
and
281 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
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 |
---|---|---|
@@ -1,98 +1,66 @@ | ||
# test.yml | ||
# Unit Test | ||
name: Unit Test | ||
|
||
on: | ||
'on': | ||
pull_request: | ||
paths: | ||
- "**.swift" | ||
- "**.xcodeproj" | ||
- "**.m" | ||
- "**.h" | ||
- "**.podspec" | ||
- "Podfile" | ||
- "Podfile.lock" | ||
- "test.yml" | ||
- '**.swift' | ||
- '**.xcodeproj' | ||
- '**.m' | ||
- '**.h' | ||
- '**.podspec' | ||
- Podfile | ||
- Podfile.lock | ||
- '**/test.yml' | ||
jobs: | ||
swiftpm: | ||
name: Test iOS (swiftpm) | ||
runs-on: macOS-latest | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: iOS - Swift PM | ||
run: | | ||
pod install | ||
set -o pipefail && swift test --parallel | ||
iOS: | ||
XCode: | ||
name: Test iOS | ||
runs-on: macOS-latest | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: [ | ||
'platform=iOS Simulator,OS=14.4,name=iPhone 12' | ||
] | ||
matrix: | ||
run-config: | ||
- scheme: Hero | ||
platform: iOS | ||
action: test | ||
code-coverage: true | ||
- scheme: Hero (tvOS) | ||
platform: tvOS | ||
action: build | ||
code-coverage: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: iOS - ${{ matrix.destination }} | ||
- name: CocoaPods - ${{ matrix.run-config.destination }} | ||
run: | | ||
pod install | ||
set -o pipefail && xcodebuild clean test -workspace Hero.xcworkspace -scheme Hero -destination "${destination}" -configuration "Debug" -showBuildTimingSummary -enableThreadSanitizer YES -enableCodeCoverage YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | 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_10.3.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 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: [ | ||
'platform=tvOS Simulator,OS=14.3,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 CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | xcpretty | ||
env: | ||
destination: ${{ matrix.destination }} | ||
- name: Test - ${{ matrix.run-config.platform }} | ||
uses: mxcl/[email protected] | ||
with: | ||
platform: ${{ matrix.run-config.platform }} | ||
action: ${{ matrix.run-config.action }} | ||
code-coverage: ${{ matrix.run-config.code-coverage }} | ||
configuration: Debug | ||
scheme: ${{ matrix.run-config.scheme }} | ||
workspace: Hero.xcworkspace | ||
|
||
- name: Upload Code Coverage | ||
uses: codecov/codecov-action@v3 | ||
if: ${{ matrix.run-config.code-coverage }} | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
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
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,19 @@ | ||
# Develop.md | ||
|
||
## Releases | ||
|
||
1. Make release brach `git-flow release start x.x.x` | ||
2. Search find/replace current version in XCode project | ||
3. Update `CHANGELOG.md` | ||
4. Run swift lint autocorrect `make autocorrect` | ||
5. Change version in `jazzy.yml` | ||
6. Run `make jazzy` | ||
7. Commit changes. | ||
8. Create GitHub release | ||
9. Create CocoaPods release | ||
1. ` pod lib lint` | ||
10. Finish release | ||
1. `git-flow release finish x.x.x` | ||
2. `git push --tags` | ||
11. Public CocoaPod release | ||
1. `pod trunk push` |
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
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
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ SPEC CHECKSUMS: | |
|
||
PODFILE CHECKSUM: 5c14933c915eeee6fbe5ecdd950d3da01c4a0a86 | ||
|
||
COCOAPODS: 1.10.1 | ||
COCOAPODS: 1.11.3 |
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
Oops, something went wrong.