diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebf85c6b..aba67708 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.api_key }}", + "delivery_token": "${{ secrets.delivery_token }}", + "environment": "${{ secrets.environment }}" + }' > Tests/config.json + - name: Build and run tests run: | xcodebuild test \ @@ -62,13 +70,21 @@ jobs: uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '15.4.0' + + - name: Create config file + run: | + echo '{ + "api_key": "${{ secrets.api_key }}", + "delivery_token": "${{ secrets.delivery_token }}", + "environment": "${{ secrets.environment }}" + }' > Tests/config.json - name: Build and run tests run: | 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