-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (31 loc) · 938 Bytes
/
test.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
34
35
36
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_ios:
name: Test iOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
run: gem install xcpretty
- name: Test
run: |
device=`xcrun simctl list devices available | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
xcodebuild test -destination "name=$device" -scheme 'MMMTestCase' | xcpretty
build_tvos:
name: Test tvOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare
run: gem install xcpretty
- name: Test
run: |
device=`xcrun simctl list devices available | grep -oE 'Apple TV.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
xcodebuild test -destination "name=$device" -scheme 'MMMTestCase' | xcpretty