Skip to content

Commit

Permalink
🔧 Upload result bundle for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olejnjak committed Nov 2, 2023
1 parent e50659f commit d596099
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d596099

Please sign in to comment.