From f9368b1cf80ef6920e79af2a6f0e247e2f38df41 Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Sat, 4 Jan 2025 17:15:02 +0900 Subject: [PATCH 1/4] Update test.yml --- .github/workflows/test.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d03d600..9f7c7d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,8 +8,8 @@ concurrency: cancel-in-progress: true jobs: - unit_test: - name: Unit Test + test: + name: Test runs-on: macos-14 env: DEVELOPER_DIR: "/Applications/Xcode_16.app/Contents/Developer" @@ -22,10 +22,20 @@ jobs: - name: Show Xcode Version run: xcodebuild -version - - name: Run Tests + - name: Run Unit Tests run: | xcodebuild test \ -project Examples/Examples.xcodeproj \ -scheme Examples \ + -only-testing:WebUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ - -resultBundlePath TestResults/result_bundle + -resultBundlePath TestResults/unit_test_result_bundle + + - name: Run UI Tests + run: | + xcodebuild test-without-building \ + -project Examples/Examples.xcodeproj \ + -scheme Examples \ + -only-testing:ExamplesUITests \ + -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ + -resultBundlePath TestResults/ui_test_result_bundle From d685e7bd80bec540a7311d151d9bb6b70844d5cc Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Sat, 4 Jan 2025 17:56:22 +0900 Subject: [PATCH 2/4] Update test.yml --- .github/workflows/test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f7c7d8..5409d2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,9 @@ name: Test on: workflow_dispatch: + push: + tags: + - "*.*.*" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -11,9 +14,9 @@ jobs: test: name: Test runs-on: macos-14 + timeout-minutes: 30 env: DEVELOPER_DIR: "/Applications/Xcode_16.app/Contents/Developer" - timeout-minutes: 30 steps: - name: Checkout @@ -29,13 +32,15 @@ jobs: -scheme Examples \ -only-testing:WebUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ - -resultBundlePath TestResults/unit_test_result_bundle + -resultBundlePath TestResults/unit_test_result_bundle | \ + xcpretty -c && exit ${PIPESTATUS[0]} - name: Run UI Tests run: | - xcodebuild test-without-building \ + xcodebuild test \ -project Examples/Examples.xcodeproj \ -scheme Examples \ -only-testing:ExamplesUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ - -resultBundlePath TestResults/ui_test_result_bundle + -resultBundlePath TestResults/ui_test_result_bundle | \ + xcpretty -c && exit ${PIPESTATUS[0]} From 198c2cd8aac04ae6a7b14aacad519c7e68a43379 Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Sat, 4 Jan 2025 18:14:20 +0900 Subject: [PATCH 3/4] Use xcbeautify --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5409d2a..e220297 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: -only-testing:WebUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ -resultBundlePath TestResults/unit_test_result_bundle | \ - xcpretty -c && exit ${PIPESTATUS[0]} + xcbeautify && exit ${PIPESTATUS[0]} - name: Run UI Tests run: | @@ -43,4 +43,4 @@ jobs: -only-testing:ExamplesUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ -resultBundlePath TestResults/ui_test_result_bundle | \ - xcpretty -c && exit ${PIPESTATUS[0]} + xcbeautify && exit ${PIPESTATUS[0]} From 8b840453671217a6d614ce351e6726503fdb8308 Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Sat, 4 Jan 2025 22:55:14 +0900 Subject: [PATCH 4/4] Update test.yml --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e220297..f394241 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,15 +32,17 @@ jobs: -scheme Examples \ -only-testing:WebUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ + -derivedDataPath DerivedData \ -resultBundlePath TestResults/unit_test_result_bundle | \ xcbeautify && exit ${PIPESTATUS[0]} - name: Run UI Tests run: | - xcodebuild test \ + xcodebuild test-without-building \ -project Examples/Examples.xcodeproj \ -scheme Examples \ -only-testing:ExamplesUITests \ -destination "platform=iOS Simulator,name=iPhone 15,OS=18.0" \ + -derivedDataPath DerivedData \ -resultBundlePath TestResults/ui_test_result_bundle | \ xcbeautify && exit ${PIPESTATUS[0]}