Fix code coverage targets #7
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
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Swift | |
env: | |
XCODE_VERSION: "15.0" | |
on: | |
push: | |
branches: [ "development" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: macos-13 | |
steps: | |
- name: Select Xcode Version | |
run: | | |
sudo xcode-select -switch /Applications/Xcode_"$XCODE_VERSION".app | |
- uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
xcodebuild \ | |
-scheme ThrowPublisherClient \ | |
-sdk macosx14.0 \ | |
-destination 'platform=macOS' \ | |
test && | |
xcodebuild \ | |
-scheme ThrowPublisherClient \ | |
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.0' \ | |
test && | |
xcodebuild \ | |
-scheme ThrowPublisherClient \ | |
-destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (41mm),OS=10.0' \ | |
test && | |
xcodebuild \ | |
-scheme ThrowPublisherClient \ | |
-destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation) (at 1080p),OS=17.0' \ | |
test |