forked from braintree/braintree-ios-drop-in
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (23 loc) · 1003 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Tests
on: pull_request
jobs:
unit_test_job:
name: Unit
runs-on: macOS-13
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Xcode 15.1
run: sudo xcode-select -switch /Applications/Xcode_15.1.app
- name: Run Unit Tests
run: set -o pipefail && xcodebuild -workspace 'BraintreeDropIn.xcworkspace' -sdk 'iphonesimulator' -configuration 'Debug' -scheme 'UnitTests' -destination 'name=iPhone 14,OS=17.2,platform=iOS Simulator' test | xcpretty
ui_test_job:
name: UI
runs-on: macOS-13
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Xcode 15.1
run: sudo xcode-select -switch /Applications/Xcode_15.1.app
- name: Run UI Tests
run: set -o pipefail && xcodebuild -workspace 'BraintreeDropIn.xcworkspace' -sdk 'iphonesimulator' -configuration 'Debug' -scheme 'UITests' -destination 'name=iPhone 14,OS=17.2,platform=iOS Simulator' test | xcpretty