-
Notifications
You must be signed in to change notification settings - Fork 79
23 lines (23 loc) · 987 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-12
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Xcode 14.1
run: sudo xcode-select -switch /Applications/Xcode_14.1.app
- name: Run Unit Tests
run: set -o pipefail && xcodebuild -workspace 'BraintreeDropIn.xcworkspace' -sdk 'iphonesimulator' -configuration 'Debug' -scheme 'UnitTests' -destination 'name=iPhone 11,platform=iOS Simulator' test | xcpretty
ui_test_job:
name: UI
runs-on: macOS-12
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Xcode 14.1
run: sudo xcode-select -switch /Applications/Xcode_14.1.app
- name: Run UI Tests
run: set -o pipefail && xcodebuild -workspace 'BraintreeDropIn.xcworkspace' -sdk 'iphonesimulator' -configuration 'Debug' -scheme 'UITests' -destination 'name=iPhone 11,platform=iOS Simulator' test | xcpretty