-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 866 Bytes
/
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
# This workflow will test the BobbysNews app.
name: Swift
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Setup Swift
uses: swift-actions/setup-swift@v1
- name: Test iPhone 15 Pro
run: xcodebuild test -scheme BobbysNews -project BobbysNews.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 15 Pro' | xcbeautify && exit ${PIPESTATUS[0]}
- name: Test iPad Pro (12.9-inch) (6th generation)
run: xcodebuild test -scheme BobbysNews -project BobbysNews.xcodeproj -destination 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation)' | xcbeautify && exit ${PIPESTATUS[0]}