Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
7b6ded1
feat: added variants implementation and unit tests
abhnv42 Jun 27, 2024
908ee57
fix: changed method name to start with lowercase
abhnv42 Jun 28, 2024
42cd983
fix: workflow fix
abhinav-from-contentstack Jul 2, 2024
1e9976d
fix: workflow fix
abhinav-from-contentstack Jul 2, 2024
a10434d
fix: workflow fix
abhinav-from-contentstack Jul 2, 2024
5657555
Merge branch 'master' into feat/dx-748
sunil-lakshman Sep 2, 2024
ccfc406
Merge remote-tracking branch 'origin/fix/dx-753' into feat/dx-748
Sep 17, 2024
27f9cc3
fix: removed watchos test
Sep 17, 2024
114360c
fix: workflow fixes
Sep 21, 2024
2e68777
fix: workflow fixes 2
Sep 21, 2024
b486785
fix: workflow fixes 2
Sep 21, 2024
c77a393
fix: workflow fixes 4
Sep 21, 2024
c5a38f3
fix: workflow fixes 5
Sep 21, 2024
59730de
fix: workflow fixes 6
Sep 21, 2024
12bd8e1
fix: fixed package noy resolving issue
Sep 21, 2024
544bcc8
fix: fixed package noy resolving issue 2
Sep 21, 2024
0bd4cb1
fix: fixed package noy resolving issue 2
Sep 21, 2024
41da16d
fix: fixed package noy resolving issue 2
Sep 21, 2024
ad923eb
fix: another workflow fix attempt
Sep 22, 2024
7060f05
fix: another workflow fix attempt 2
Sep 22, 2024
1563195
fix: another workflow fix attempt 3
Sep 22, 2024
da7069b
fix: another workflow fix attempt 4
Sep 22, 2024
1a1dd81
fix: another workflow fix attempt 5
Sep 22, 2024
1cc5bd5
fix: another workflow fix attempt 6
Sep 22, 2024
937f7ba
fix: another workflow fix attempt 7
Sep 22, 2024
7ba09ae
fix: another workflow fix attempt 7
Sep 22, 2024
172d160
fix: another workflow fix attempt 7
Sep 22, 2024
d5e1716
fix: another workflow fix attempt 8
Sep 22, 2024
65d6447
fix: another workflow fix attempt 10
Sep 22, 2024
e3a74e8
fix: another workflow fix attempt 11
Sep 22, 2024
99618b5
fix: another workflow fix attempt 12
Sep 22, 2024
695fe0e
fix: added new job for ios tests
Sep 25, 2024
8ef41a2
fix: added new job for ios tests 2
Sep 25, 2024
a0285e3
fix: added new job for ios tests 3
Sep 25, 2024
de8108f
fix: added new job for ios tests 4
Sep 25, 2024
fc2add6
fix: added new job for ios tests 5
Sep 25, 2024
5ffbf76
fix: added new job for ios tests 6
Sep 25, 2024
beaabb1
fix: added new job for ios tests 7
Sep 25, 2024
cf36d44
fix: added new job for ios tests 8
Sep 25, 2024
6e9df3a
fix: added build command in the actions
Sep 25, 2024
3b1dada
fix: added more changes
Sep 26, 2024
10188a8
fix: excluded arch changes
Sep 26, 2024
768f935
fix: workflow related changes 1
Sep 26, 2024
dee9d78
fix: workflow related changes and test fixes
Sep 26, 2024
a6e9149
fix: updated macos test task
Sep 29, 2024
46d3bd5
fix: updated macos test task 2
Sep 29, 2024
1b02501
fix: updated macos test task 3
Sep 29, 2024
53cf643
fix: updated macos test task 4
Sep 29, 2024
add9334
fix: updated macos test task 5
Sep 29, 2024
614e506
fix: updated macos test task 6
Sep 29, 2024
6eb41ad
fix: updated macos test task 7
Sep 29, 2024
debd3e9
fix: updated macos test task 8
Sep 29, 2024
faedbcd
fix: updated macos test task 9
Sep 29, 2024
d9d01e8
fix: removed stack creds
Oct 1, 2024
60d1e5c
Merge pull request #51 from contentstack/staging
cs-raj Oct 7, 2024
906c762
Merge pull request #49 from contentstack/feat/DX-748_new
netrajpatel Oct 10, 2024
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
114 changes: 52 additions & 62 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,65 @@ jobs:
macOS:
name: Test macOS
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v1
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Ruby (for installing Bundler and Fastlane)
uses: ruby/setup-ruby@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Dependencies
run: carthage bootstrap --no-use-binaries --platform macOS
- name: Dependency libxml2
run: brew install libxml2 && brew link --force libxml2
- name: macOS
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Contentstack.xcworkspace" -scheme "Contentstack macOS" SWIFT_ACTIVE_COMPILATION_CONDITIONS="NO_FATAL_TEST" -destination "platform=macOS" test | xcpretty
ruby-version: '3.0'

- name: Install dep via Carthage
run: |
carthage bootstrap --platform macOS --use-xcframeworks --cache-builds

- name: Install dependencies via Swift Package Manager
run: swift package resolve

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4.0'

- name: Build and run tests
run: |
xcodebuild test \
-workspace Contentstack.xcworkspace \
-scheme "Contentstack macOS Tests" \
-destination 'platform=macOS,arch=arm64' \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
iOS:
name: Test iOS
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
strategy:
matrix:
destination: ["OS=16.2,name=iPhone 14 Pro"]
steps:
- uses: actions/checkout@v1
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Ruby (for installing Bundler and Fastlane)
uses: ruby/setup-ruby@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Dependencies
run: carthage bootstrap --no-use-binaries --platform iOS --use-xcframeworks
- name: iOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Contentstack.xcworkspace" -scheme "Contentstack iOS" SWIFT_ACTIVE_COMPILATION_CONDITIONS="NO_FATAL_TEST" -destination "${{ matrix.destination }}" test | xcpretty
ruby-version: '3.0'

- name: Install dep via Carthage
run: |
carthage bootstrap --platform iOS --use-xcframeworks --cache-builds

- name: Install dependencies via Swift Package Manager
run: swift package resolve

tvOS:
name: Test tvOS
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
strategy:
matrix:
destination: ["OS=16.1,name=Apple TV 4K (2nd generation)"]
steps:
- uses: actions/checkout@v1
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Dependencies
run: carthage bootstrap --no-use-binaries --platform tvOS --use-xcframeworks
- name: tvOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Contentstack.xcworkspace" -scheme "Contentstack tvOS" SWIFT_ACTIVE_COMPILATION_CONDITIONS="NO_FATAL_TEST" -destination "${{ matrix.destination }}" test | xcpretty
xcode-version: '15.4.0'

watchOS:
name: Test watchOS
runs-on: macos-latest
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
strategy:
matrix:
destination: ["OS=9.1,name=Apple Watch Series 6 (44mm)"]
steps:
- uses: actions/checkout@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: watchOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Contentstack.xcworkspace" -scheme "Contentstack watchOS" -destination "${{ matrix.destination }}" build | xcpretty
- name: Build and run tests
run: |
xcodebuild test \
-workspace Contentstack.xcworkspace \
-scheme "Contentstack iOS Tests" \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
4 changes: 2 additions & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "AliSoftware/OHHTTPStubs" "8.0.0"
github "venmo/DVR" "v2.0.1"
github "venmo/DVR"
github "contentstack/contentstack-utils-swift.git"
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "AliSoftware/OHHTTPStubs" "8.0.0"
github "venmo/DVR" "v2.0.1"
github "vkalta/DVR" "8bb79349473d1ff595f07d216662ee5163854f42"
github "vkalta/contentstack-utils-swift" "dacaf16bd8e4e182e0bef57df2957c7c8697082c"
Loading
Loading