Skip to content

Improve resolver safety and docs #99

Improve resolver safety and docs

Improve resolver safety and docs #99

Workflow file for this run

name: Unit Test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
unittest:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: swift package resolve
- name: Pick xcode 16.2
run: sudo xcode-select -s '/Applications/Xcode_16.2.app/Contents/Developer'
- name: Run Tests on MacOS
run: |
swift build -v
swift test -v
- name: Run Tests on iOS Simulator (if available)
run: |
if xcrun simctl list runtimes | rg -q "iOS"; then
xcodebuild test \
-scheme 'SwiftEnvironment' \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 15' \
-skipPackagePluginValidation
else
echo "iOS Simulator runtime not available on runner; skipping iOS simulator tests."
fi