Skip to content

Commit

Permalink
Add tester
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Aug 29, 2023
1 parent 7446554 commit a96cb1c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
configuration: "Debug"
xcpretty: "xcpretty"
builder: "set -o pipefail && xcodebuild \"build\" \"${type-flag}\" \"${path}\" \"-scheme\" \"${scheme}\" \"-configuration\" \"${configuration}\" \"-destination\" \"${destination}\" | \"${xcpretty}\""
tester: "set -o pipefail && xcodebuild -scheme \"${scheme}\" test -destination \"${destination}\" | \"${xcpretty}\""

jobs:
check-pr:
Expand All @@ -39,14 +40,13 @@ jobs:
- name: Run Checkout Tests
run: |
set -o pipefail
xcodebuild -scheme "${scheme}" test -destination "${destination}" | "${xcpretty}"
$tester
env:
scheme: CheckoutTests

- name: Build Checkout SPM Test Project
run: |
"${builder}"
$builder
env:
path: "Checkout/Samples/SPMSample/CheckoutSPMSample.xcodeproj"
scheme: "CheckoutSPMSample"
Expand All @@ -60,22 +60,21 @@ jobs:
- name: Build Checkout CocoaPods Test Project
run: |
"${builder}"
$builder
env:
path: "Checkout/Samples/CocoapodsSample/CheckoutCocoapodsSample.xcworkspace"
scheme: "CheckoutCocoapodsSample"
type-flag: "-workspace"

- name: Run Frames Unit Tests
run: |
set -o pipefail
xcodebuild -scheme "${scheme}" test -destination "${destination}" | "${xcpretty}"
$tester
env:
scheme: "FramesTests"

- name: Build Frames SPM Test Project
run: |
"${builder}"
$builder
env:
path: "iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj"
scheme: "iOS Example Frame"
Expand All @@ -88,7 +87,7 @@ jobs:
- name: Build Frames CocoaPods Test Project
run: |
"${builder}"
$builder
env:
path: "iOS Example Frame/iOS Example Frame.xcworkspace"
scheme: "iOS Example Frame"
Expand Down

0 comments on commit a96cb1c

Please sign in to comment.