feat: Always perform window enumeration on the main thread #118
Workflow file for this run
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
permissions: | |
contents: read | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
# Spend CI time only on latest ref | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
name: test | |
jobs: | |
test-ios13: | |
# iOS 13.7 is the oldest we can go, but that is only available on the macOS 11 runner image | |
# https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md | |
name: Test iOS13 | |
runs-on: macOS-11 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Select | |
run: xcversion select 11.7 | |
- name: Build and test | |
run: | | |
xcodebuild test -workspace .swiftpm/xcode/package.xcworkspace \ | |
-scheme Trap \ | |
-sdk iphonesimulator13.7 \ | |
-destination "platform=iOS Simulator,OS=13.7,name=iPhone 8" \ | |
-disableAutomaticPackageResolution \ | |
-usePackageSupportBuiltinSCM \ | |
-derivedDataPath .build/ \ | |
-resultBundlePath ResultBundle.xcresult \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO \ | |
build test | |
test-ios16: | |
name: Test iOS16 | |
runs-on: macOS-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Select | |
run: sudo xcode-select -switch /Applications/XCode_14.3.1.app | |
- name: Build and test | |
run: | | |
xcodebuild test \ | |
-workspace .swiftpm/xcode/package.xcworkspace \ | |
-scheme Trap \ | |
-sdk iphonesimulator16.4 \ | |
-destination "platform=iOS Simulator,OS=16.4,name=iPhone 14" \ | |
-disableAutomaticPackageResolution \ | |
-usePackageSupportBuiltinSCM \ | |
-enableCodeCoverage YES \ | |
-resultBundlePath ResultBundle.xcresult \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO \ | |
build test | |
- name: Convert to Codecov | |
run: | | |
brew tap a7ex/homebrew-formulae | |
brew install xcresultparser | |
xcresultparser \ | |
--output-format cobertura \ | |
ResultBundle.xcresult > coverage.xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |