JSONDecoder extension #3
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: Apple Platform Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| SwiftPM: | |
| name: ${{ matrix.platform }} | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: ['ios', 'macos', 'tvos', 'watchos', 'visionos'] | |
| env: | |
| DEVELOPER_DIR: /Applications/Xcode_26.2.0.app/Contents/Developer | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Test ${{ matrix.platform }} | |
| run: | | |
| set -euo pipefail | |
| case "${{ matrix.platform }}" in | |
| ios) | |
| xcodebuild clean test -workspace . -scheme SwifterJSON -destination "platform=iOS Simulator,name=Any iOS Simulator Device" | |
| ;; | |
| tvos) | |
| xcodebuild clean test -workspace . -scheme SwifterJSON -destination "platform=tvOS Simulator,name=Any tvOS Simulator Device" | |
| ;; | |
| macos) | |
| swift test --parallel | |
| ;; | |
| watchos) | |
| xcodebuild clean test -workspace . -scheme SwifterJSON -destination "platform=watchOS Simulator,name=Any watchOS Simulator Device" | |
| ;; | |
| visionos) | |
| xcodebuild clean test -workspace . -scheme SwifterJSON -destination "platform=visionOS Simulator,name=Any visionOS Simulator Device" | |
| ;; | |
| esac |