Skip to content

🔧 Upload result bundle for failed tests #466

🔧 Upload result bundle for failed tests

🔧 Upload result bundle for failed tests #466

Workflow file for this run

name: Tests
on: [pull_request, push]
jobs:
tests:
name: Run tests
runs-on: macos-13
steps:
- uses: actions/[email protected]
- uses: AckeeCZ/[email protected]
- name: Run iOS tests
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 -resultBundlePath Tests-macOS.xcresult -destination 'platform=OS X,arch=x86_64' | xcpretty
- uses: actions/upload-artifact@v3
if: failure()
with:
path: Tests-macOS.xcresult