@@ -11,21 +11,36 @@ jobs:
11
11
runs-on : macos-latest
12
12
strategy :
13
13
matrix :
14
- destination : ['name=" iPhone 14 Pro" ,OS=latest']
14
+ destination : ['name=iPhone 15 Pro,OS=latest']
15
15
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - name : Run Test
19
- working-directory : MixpanelDemo
20
- run : |
21
- set -o pipefail
22
- xcodebuild -scheme MixpanelDemo -derivedDataPath Build/ -destination ${{ matrix.destination }} -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c;
23
- - name : Pod Lint
24
- run : |
25
- gem install cocoapods
26
- pod lib lint --allow-warnings
27
- - name : Code Coverage Report
28
- working-directory : MixpanelDemo/build/Logs/Test
29
- run : |
30
- xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
31
- xcrun xccov view --report --only-targets *.xcresult
17
+ - uses : actions/checkout@v2
18
+
19
+ # (Optional) Inspect what simulators are installed
20
+ - name : Show simulators
21
+ run : xcrun simctl list
22
+
23
+ - name : Run Test
24
+ working-directory : MixpanelDemo
25
+ run : |
26
+ set -o pipefail
27
+ xcodebuild \
28
+ -scheme MixpanelDemo \
29
+ -derivedDataPath Build/ \
30
+ -destination "${{ matrix.destination }}" \
31
+ -configuration Debug \
32
+ ONLY_ACTIVE_ARCH=NO \
33
+ ENABLE_TESTABILITY=YES \
34
+ -enableCodeCoverage YES \
35
+ clean build test | xcpretty -c;
36
+
37
+ - name : Pod Lint
38
+ run : |
39
+ gem install cocoapods
40
+ pod lib lint --allow-warnings
41
+
42
+ - name : Code Coverage Report
43
+ working-directory : MixpanelDemo/build/Logs/Test
44
+ run : |
45
+ xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
46
+ xcrun xccov view --report --only-targets *.xcresult
0 commit comments