From dbf9de4cd1a38f06aa44399139f06a2fbd2eef89 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 9 Jan 2025 16:39:56 +0530 Subject: [PATCH 1/5] added secrets in the workflow --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebf85c6b..b06f65b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,14 @@ jobs: with: xcode-version: '15.4.0' + - name: Create config file + run: | + echo '{ + "api_key": "${{ secrets.CS_API_KEY }}", + "delivery_token": "${{ secrets.CS_DELIVERY_TOKEN }}", + "environment": "${{ secrets.CS_ENVIRONMENT }}" + }' > Tests/config.json + - name: Build and run tests run: | xcodebuild test \ @@ -62,6 +70,14 @@ jobs: uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '15.4.0' + + - name: Create config file + run: | + echo '{ + "api_key": "${{ secrets.CS_API_KEY }}", + "delivery_token": "${{ secrets.CS_DELIVERY_TOKEN }}", + "environment": "${{ secrets.CS_ENVIRONMENT }}" + }' > Tests/config.json - name: Build and run tests run: | From 1fe95f332dea50a9f08fca75f7cfb83a671d80be Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Thu, 9 Jan 2025 16:59:08 +0530 Subject: [PATCH 2/5] correction made --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b06f65b0..a680177d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,9 +34,9 @@ jobs: - name: Create config file run: | echo '{ - "api_key": "${{ secrets.CS_API_KEY }}", - "delivery_token": "${{ secrets.CS_DELIVERY_TOKEN }}", - "environment": "${{ secrets.CS_ENVIRONMENT }}" + "api_key": "${{ secrets.api_key }}", + "delivery_token": "${{ secrets.delivery_token }}", + "environment": "${{ secrets.environment }}" }' > Tests/config.json - name: Build and run tests @@ -74,9 +74,9 @@ jobs: - name: Create config file run: | echo '{ - "api_key": "${{ secrets.CS_API_KEY }}", - "delivery_token": "${{ secrets.CS_DELIVERY_TOKEN }}", - "environment": "${{ secrets.CS_ENVIRONMENT }}" + "api_key": "${{ secrets.api_key }}", + "delivery_token": "${{ secrets.delivery_token }}", + "environment": "${{ secrets.environment }}" }' > Tests/config.json - name: Build and run tests From 7a1447014cea90596f04eb544b63e9ebfc7093b0 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Fri, 10 Jan 2025 11:04:16 +0530 Subject: [PATCH 3/5] changes made in simulator configuration --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a680177d..aba67708 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: xcodebuild test \ -workspace Contentstack.xcworkspace \ -scheme "Contentstack iOS Tests" \ - -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \ + -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \ -sdk iphonesimulator \ ONLY_ACTIVE_ARCH=NO \ CODE_SIGNING_ALLOWED=NO \ No newline at end of file From 34927185351eca52e228b88e5575cd52d44fb98b Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Fri, 10 Jan 2025 11:15:53 +0530 Subject: [PATCH 4/5] changes 1 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aba67708..3df81a85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: xcodebuild test \ -workspace Contentstack.xcworkspace \ -scheme "Contentstack iOS Tests" \ - -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \ + -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' \ -sdk iphonesimulator \ ONLY_ACTIVE_ARCH=NO \ CODE_SIGNING_ALLOWED=NO \ No newline at end of file From 68a8ad85018ecba789b00471829953f34cc3ccd8 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Fri, 10 Jan 2025 15:18:45 +0530 Subject: [PATCH 5/5] changes 2 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3df81a85..aba67708 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: xcodebuild test \ -workspace Contentstack.xcworkspace \ -scheme "Contentstack iOS Tests" \ - -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' \ + -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \ -sdk iphonesimulator \ ONLY_ACTIVE_ARCH=NO \ CODE_SIGNING_ALLOWED=NO \ No newline at end of file