name: Swift CI

on: [push, pull_request]

jobs:
  test:
    name: Test UIDeviceComplete
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
    - name: Test
      run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "UIDeviceComplete.xcodeproj" -scheme "UIDeviceComplete" -destination "OS=14.3,name=iPhone 12 Pro" clean test | xcpretty

name: Swift CI

on: [push, pull_request]

jobs:
  test:
    name: Test UIDeviceComplete
    runs-on: macos-latest
    env:
      DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
    steps:
    - uses: actions/checkout@v2
    - name: Test
      run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "UIDeviceComplete.xcodeproj" -scheme "UIDeviceComplete" -destination "OS=14.4,name=iPhone 12 Pro" clean test | xcpretty

Use Xcode 12.4 for CI
Use Xcode 12.4 for CI

This should prevent Github default Xcode version changes causing failures due to lack of older SDK/simulator.