Improve resolver safety and docs #99
Workflow file for this run
This file contains hidden or 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
| 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 |