Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Loading