-
Notifications
You must be signed in to change notification settings - Fork 238
46 lines (39 loc) · 1.16 KB
/
iOS.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
37
38
39
40
41
42
43
44
45
46
name: iOS CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
destination: ['name=iPhone 15 Pro,OS=latest']
steps:
- uses: actions/checkout@v2
# (Optional) Inspect what simulators are installed
- name: Show simulators
run: xcrun simctl list
- name: Run Test
working-directory: MixpanelDemo
run: |
set -o pipefail
xcodebuild \
-scheme MixpanelDemo \
-derivedDataPath Build/ \
-destination "${{ matrix.destination }}" \
-configuration Debug \
ONLY_ACTIVE_ARCH=NO \
ENABLE_TESTABILITY=YES \
-enableCodeCoverage YES \
clean build test | xcpretty -c;
- name: Pod Lint
run: |
gem install cocoapods
pod lib lint --allow-warnings
- name: Code Coverage Report
working-directory: MixpanelDemo/build/Logs/Test
run: |
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
xcrun xccov view --report --only-targets *.xcresult