Skip to content

Commit 38d93f5

Browse files
authored
Merge pull request #39 from cybozu/fix-workflow
Modified test workflow
2 parents 5434320 + 8b84045 commit 38d93f5

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ name: Test
22

33
on:
44
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*.*.*"
58

69
concurrency:
710
group: ${{ github.workflow }}-${{ github.ref }}
811
cancel-in-progress: true
912

1013
jobs:
11-
unit_test:
12-
name: Unit Test
14+
test:
15+
name: Test
1316
runs-on: macos-14
17+
timeout-minutes: 30
1418
env:
1519
DEVELOPER_DIR: "/Applications/Xcode_16.app/Contents/Developer"
16-
timeout-minutes: 30
1720

1821
steps:
1922
- name: Checkout
@@ -22,10 +25,24 @@ jobs:
2225
- name: Show Xcode Version
2326
run: xcodebuild -version
2427

25-
- name: Run Tests
28+
- name: Run Unit Tests
2629
run: |
2730
xcodebuild test \
2831
-project Examples/Examples.xcodeproj \
2932
-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 \
3045
-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]}

0 commit comments

Comments
 (0)