File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,21 @@ name: Test
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ push :
6
+ tags :
7
+ - " *.*.*"
5
8
6
9
concurrency :
7
10
group : ${{ github.workflow }}-${{ github.ref }}
8
11
cancel-in-progress : true
9
12
10
13
jobs :
11
- unit_test :
12
- name : Unit Test
14
+ test :
15
+ name : Test
13
16
runs-on : macos-14
17
+ timeout-minutes : 30
14
18
env :
15
19
DEVELOPER_DIR : " /Applications/Xcode_16.app/Contents/Developer"
16
- timeout-minutes : 30
17
20
18
21
steps :
19
22
- name : Checkout
@@ -22,10 +25,24 @@ jobs:
22
25
- name : Show Xcode Version
23
26
run : xcodebuild -version
24
27
25
- - name : Run Tests
28
+ - name : Run Unit Tests
26
29
run : |
27
30
xcodebuild test \
28
31
-project Examples/Examples.xcodeproj \
29
32
-scheme Examples \
33
+ -only-testing:WebUITests \
34
+ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \
35
+ -derivedDataPath DerivedData \
36
+ -resultBundlePath TestResults/unit_test_result_bundle | \
37
+ xcbeautify && exit ${PIPESTATUS[0]}
38
+
39
+ - name : Run UI Tests
40
+ run : |
41
+ xcodebuild test-without-building \
42
+ -project Examples/Examples.xcodeproj \
43
+ -scheme Examples \
44
+ -only-testing:ExamplesUITests \
30
45
-destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \
31
- -resultBundlePath TestResults/result_bundle
46
+ -derivedDataPath DerivedData \
47
+ -resultBundlePath TestResults/ui_test_result_bundle | \
48
+ xcbeautify && exit ${PIPESTATUS[0]}
You can’t perform that action at this time.
0 commit comments