-
Notifications
You must be signed in to change notification settings - Fork 12
29 lines (27 loc) · 950 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
name: Swift Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: actions/cache@v2
id: cocoapods-cache
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: CocoaPods
if: steps.cocoapods-cache.outputs.cache-hit != 'true'
run: |
pod install --project-directory=Example
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.2.app && /usr/bin/xcodebuild -version
- name: Run unit tests
run: xcodebuild build test -scheme Chargebee -workspace 'Example/Chargebee Example.xcworkspace' -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | xcpretty && exit ${PIPESTATUS[0]}