From d2620a3428d02039a33b83e7d54cd6edbdee309e Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Fri, 13 Dec 2024 11:56:40 +0000 Subject: [PATCH 1/9] [MOB-10402] Add test reports --- .github/workflows/build-and-test.yml | 15 ++++++++++++++- .github/workflows/e2e.yml | 6 ++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c11c66ec..2519fab9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,10 +20,23 @@ jobs: - name: Build and test run: | - xcodebuild test -project swift-sdk.xcodeproj -scheme swift-sdk -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} + xcodebuild test \ + -project swift-sdk.xcodeproj \ + -scheme swift-sdk \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \ + -enableCodeCoverage YES \ + -resultBundlePath TestResults.xcresult \ + CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} - name: CocoaPods lint run: pod lib lint --allow-warnings - name: Upload coverage report to codecov.io run: bash <(curl -s https://codecov.io/bash) -X gcov -J 'IterableSDK' -J 'IterableAppExtensions' + + - name: Create Test Report + uses: kishikawakatsumi/xcresulttool@v1 + with: + path: TestResults.xcresult + if: success() || failure() diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index d01a60bc..3d008fef 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -23,3 +23,9 @@ jobs: in_app_template_id: ${{secrets.E2E_IN_APP_TEMPLATE_ID}} run: | ./tests/endpoint-tests/scripts/run_test.sh + + - name: Create Test Report + uses: kishikawakatsumi/xcresulttool@v1 + with: + path: TestResults.xcresult + if: success() || failure() \ No newline at end of file From 69f524118e2c67617160f3e792f4c567da00677f Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Fri, 13 Dec 2024 12:01:01 +0000 Subject: [PATCH 2/9] [MOB-10402] Add test reports --- .github/workflows/e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3d008fef..47d91ae7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -7,9 +7,9 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@v4 - - uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 + - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable From 7b8e28010d4facd13be276874159f91d931dcaf0 Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Fri, 13 Dec 2024 13:22:27 +0000 Subject: [PATCH 3/9] [MOB-10402] Add test reports --- tests/endpoint-tests/scripts/run_test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/endpoint-tests/scripts/run_test.sh b/tests/endpoint-tests/scripts/run_test.sh index 63c8395b..5f1b4f7f 100755 --- a/tests/endpoint-tests/scripts/run_test.sh +++ b/tests/endpoint-tests/scripts/run_test.sh @@ -24,4 +24,5 @@ xcodebuild -project swift-sdk.xcodeproj \ -scheme endpoint-tests \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ + -resultBundlePath TestResults.xcresult \ test | xcpretty \ No newline at end of file From b706ad36db91e155e8fe0693867047461e915452 Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 14:58:39 +0000 Subject: [PATCH 4/9] [MOB-10402] Fix --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2519fab9..6d3c699f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,7 +24,7 @@ jobs: -project swift-sdk.xcodeproj \ -scheme swift-sdk \ -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' \ + -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ -enableCodeCoverage YES \ -resultBundlePath TestResults.xcresult \ CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} From 4fc091c53639732bb453d090e8ac4941c1cc397e Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 14:59:43 +0000 Subject: [PATCH 5/9] [MOB-10402] Fix --- .github/workflows/e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 47d91ae7..3d008fef 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -7,9 +7,9 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 with: xcode-version: latest-stable From 0cd2f2633300e2066d150dd2a74b05f19a524e9f Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 15:11:08 +0000 Subject: [PATCH 6/9] [MOB-10402] Fix --- .github/workflows/e2e.yml | 6 ------ tests/endpoint-tests/scripts/run_test.sh | 1 - 2 files changed, 7 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 3d008fef..d01a60bc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -23,9 +23,3 @@ jobs: in_app_template_id: ${{secrets.E2E_IN_APP_TEMPLATE_ID}} run: | ./tests/endpoint-tests/scripts/run_test.sh - - - name: Create Test Report - uses: kishikawakatsumi/xcresulttool@v1 - with: - path: TestResults.xcresult - if: success() || failure() \ No newline at end of file diff --git a/tests/endpoint-tests/scripts/run_test.sh b/tests/endpoint-tests/scripts/run_test.sh index 5f1b4f7f..63c8395b 100755 --- a/tests/endpoint-tests/scripts/run_test.sh +++ b/tests/endpoint-tests/scripts/run_test.sh @@ -24,5 +24,4 @@ xcodebuild -project swift-sdk.xcodeproj \ -scheme endpoint-tests \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ - -resultBundlePath TestResults.xcresult \ test | xcpretty \ No newline at end of file From f42781d988d10c5a3488e5231d7b99d9a7cdc293 Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 15:24:05 +0000 Subject: [PATCH 7/9] [MOB-10402] Fix --- .github/workflows/build-and-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6d3c699f..27816fc8 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,12 +4,12 @@ on: pull_request jobs: run-tests-job: - runs-on: macos-latest + runs-on: macos-13 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/checkout@v4 - - uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 + - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable From 7ed554b652d98d472c6c9c8fe16e53b9527f1c41 Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 15:39:58 +0000 Subject: [PATCH 8/9] [MOB-10402] Fix --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 27816fc8..770c7d6f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,7 +24,7 @@ jobs: -project swift-sdk.xcodeproj \ -scheme swift-sdk \ -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone 16 Pro' \ + -destination 'platform=iOS Simulator,name=iPhone 14' \ -enableCodeCoverage YES \ -resultBundlePath TestResults.xcresult \ CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]} From 568ebe9f5974fa483fb147ea2e73aff00a301443 Mon Sep 17 00:00:00 2001 From: Sumeru Chatterjee Date: Thu, 19 Dec 2024 16:51:19 +0000 Subject: [PATCH 9/9] [MOB-10402] fix --- .github/workflows/build-and-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 770c7d6f..31edef2e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -4,12 +4,12 @@ on: pull_request jobs: run-tests-job: - runs-on: macos-13 + runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 with: xcode-version: latest-stable @@ -34,7 +34,7 @@ jobs: - name: Upload coverage report to codecov.io run: bash <(curl -s https://codecov.io/bash) -X gcov -J 'IterableSDK' -J 'IterableAppExtensions' - + - name: Create Test Report uses: kishikawakatsumi/xcresulttool@v1 with: