From 3f1f6d1ee9c47779ba96133c572cee3c0b72e7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ula=C5=9F=20Sancak?= Date: Thu, 2 Nov 2023 18:47:51 +0300 Subject: [PATCH] Create swift.yml --- .github/workflows/swift.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..f347b07 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,43 @@ +# 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