forked from youviewtv/json-rpc-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.15 KB
/
examples_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
24
25
26
27
28
29
30
31
32
33
name: Examples
on:
push:
pull_request:
branches:
- "master"
jobs:
Run_workspace_Tests:
runs-on: macOS-10.15
strategy:
matrix:
example_name: ['MVC-Simple', 'MVVM-Combine', 'MVVM-RxSwift', 'MVVM-SwiftUI']
defaults:
run:
working-directory: ./Examples/RandomLottery/${{ matrix.example_name }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_12.4.app && /usr/bin/xcodebuild -version
- name: Install dependencies
run: if [ -f Podfile ]; then pod install; fi
- name: Run unit tests
run: >
if [ -d RandomLottery.xcworkspace ]; then
xcodebuild test -scheme RandomLottery -workspace RandomLottery.xcworkspace -destination platform='iOS Simulator,OS=14.4,name=iPhone 8' | xcpretty && exit ${PIPESTATUS[0]};
else
xcodebuild test -scheme RandomLottery -project RandomLottery.xcodeproj -destination platform='iOS Simulator,OS=14.4,name=iPhone 8' | xcpretty && exit ${PIPESTATUS[0]};
fi