-
Notifications
You must be signed in to change notification settings - Fork 48
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
1 parent
11f9660
commit 08675e1
Showing
2 changed files
with
120 additions
and
0 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,89 @@ | ||
name: Verify PR | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
- 'release/*' | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
- 'release/*' | ||
|
||
env: | ||
destination: "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest" | ||
configuration: "Debug" | ||
noIndex: "COMPILER_INDEX_STORE_ENABLE=NO" | ||
noSigning: "CODE_SIGNING_ALLOWED=NO" | ||
versionXcode: "14.3.1" | ||
|
||
jobs: | ||
all-jobs: | ||
name: Verify PR | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Select Xcode | ||
run: | | ||
sudo xcode-select -switch /Applications/Xcode_${versionXcode}.app && /usr/bin/xcodebuild -version | ||
- name: Log xcodebuild Version | ||
run: | | ||
xcodebuild -version | ||
- name: Run Checkout Tests | ||
run: | | ||
set -o pipefail && xcodebuild -scheme "${scheme}" test -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
scheme: CheckoutTests | ||
|
||
- name: Build Checkout SPM Test Project | ||
run: | | ||
set -o pipefail && xcodebuild "build" "-project" "${path}" "-scheme" "${scheme}" "-configuration" "${configuration}" "-destination" "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
path: "Checkout/Samples/SPMSample/CheckoutSPMSample.xcodeproj" | ||
scheme: "CheckoutSPMSample" | ||
|
||
|
||
- name: Checkout Pod Update | ||
run: | | ||
cd Checkout/Samples/CocoapodsSample | ||
pod update | ||
- name: Build Checkout CocoaPods Test Project | ||
run: | | ||
set -o pipefail && xcodebuild "build" "-workspace" "${path}" "-scheme" "${scheme}" "-configuration" "${configuration}" "-destination" "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
path: "Checkout/Samples/CocoapodsSample/CheckoutCocoapodsSample.xcworkspace" | ||
scheme: "CheckoutCocoapodsSample" | ||
|
||
- name: Run Frames Unit Tests | ||
run: | | ||
set -o pipefail && xcodebuild -scheme "${scheme}" test -destination "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
scheme: "FramesTests" | ||
|
||
- name: Build Frames SPM Test Project | ||
run: | | ||
set -o pipefail && xcodebuild "build" "-project" "${path}" "-scheme" "${scheme}" "-configuration" "${configuration}" "-destination" "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
path: "iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj" | ||
scheme: "iOS Example Frame" | ||
|
||
- name: Frames Pod Update | ||
run: | | ||
cd iOS\ Example\ Frame | ||
pod update | ||
- name: Build Frames CocoaPods Test Project | ||
run: | | ||
set -o pipefail && xcodebuild "build" "-workspace" "${path}" "-scheme" "${scheme}" "-configuration" "${configuration}" "-destination" "${destination}" "${noIndex}" "${noSigning}" | xcpretty | ||
env: | ||
path: "iOS Example Frame/iOS Example Frame.xcworkspace" | ||
scheme: "iOS Example Frame" |
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,31 @@ | ||
name: Run UI Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
- 'release/*' | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- 'main' | ||
- 'develop' | ||
- 'release/*' | ||
|
||
jobs: | ||
all-jobs: | ||
name: Run UI Tests | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log xcodebuild Version | ||
run: | | ||
xcodebuild -version | ||
- name: Run UI Tests | ||
run: | | ||
set -o pipefail && xcodebuild test "-project" "iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj" "-scheme" "UITest" "-configuration" "UITest" "-destination" "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest" |