-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Upload result bundle for failed tests
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 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 |
---|---|---|
|
@@ -10,6 +10,18 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: AckeeCZ/[email protected] | ||
- name: Run iOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=latest' ONLY_ACTIVE_ARCH=YES | xcpretty | ||
env: | ||
DEVICE: iPhone 15 Pro Max | ||
run: | | ||
xcrun simctl boot "$DEVICE" | ||
set -o pipefail && xcodebuild test -scheme ACKategories-iOS -resultBundlePath Tests-iOS.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=$DEVICE,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
path: Tests-iOS.xcresult | ||
- name: Run macOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategoriesCore -destination 'platform=OS X,arch=x86_64' | xcpretty | ||
run: set -o pipefail && xcodebuild test -scheme ACKategoriesCore -resultBundlePath Tests-macOS.xcresult -destination 'platform=OS X,arch=x86_64' | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
path: Tests-macOS.xcresult |