-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.17 KB
/
swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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