Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 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
aee37f9
Merge pull request #50 from contentstack/master
cs-raj Oct 7, 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
97437c9
Merge pull request #53 from contentstack/development
reeshika-h Oct 21, 2024
473b2f0
changes made as suggested
reeshika-h Nov 3, 2024
c626291
minor changes
reeshika-h Nov 6, 2024
8742553
minor changes
reeshika-h Nov 6, 2024
58a9223
minor change
reeshika-h Nov 6, 2024
ebb3919
Merge pull request #55 from contentstack/fix/DX-1400-GH-issue
reeshika-h Nov 7, 2024
ceff54a
Contentstack-swift-dvr package has been added
reeshika-h Jan 3, 2025
9428db6
Added a step to resolve dependencies before running snyk
reeshika-h Jan 3, 2025
1f4dbda
Added pkg token for accessing private repos
reeshika-h Jan 3, 2025
21a5829
changes made to handle [email protected] URLs
reeshika-h Jan 3, 2025
b138ad9
changes made since facing errors
reeshika-h Jan 3, 2025
212a6eb
fix changes 1
reeshika-h Jan 6, 2025
2a1a5d6
fix: changes 2
reeshika-h Jan 6, 2025
78eb480
fix: changes 3
reeshika-h Jan 6, 2025
0e086ec
fix : changes 4
reeshika-h Jan 6, 2025
4be65c9
Update sca-scan.yml
aravindbuilt Jan 7, 2025
47af133
Update sca-scan.yml
aravindbuilt Jan 7, 2025
d7ce344
Adding the cartfile back, since certain workflows in the repo use Car…
reeshika-h Jan 7, 2025
dbf9de4
added secrets in the workflow
reeshika-h Jan 9, 2025
1fe95f3
correction made
reeshika-h Jan 9, 2025
7a14470
changes made in simulator configuration
reeshika-h Jan 10, 2025
3492718
changes 1
reeshika-h Jan 10, 2025
68a8ad8
changes 2
reeshika-h Jan 10, 2025
dddbd89
Merge pull request #59 from contentstack/fix/DX-963-ci-workflow
reeshika-h Jan 13, 2025
7b8f2ac
updated the url for swift utils sdk
reeshika-h Jan 17, 2025
b3b17b4
Merge pull request #58 from contentstack/feat/DX-1568-dvr-package-alt
reeshika-h Jan 17, 2025
25e8151
Merge pull request #57 from contentstack/development
reeshika-h Jan 17, 2025
01ff360
fix 1
reeshika-h Jan 17, 2025
ba0b665
changes to rerun actions
reeshika-h Jan 20, 2025
b55ec80
changes 2
reeshika-h Jan 20, 2025
4f80d9f
fulfill called multiple times hence causing workflow to fail
reeshika-h Jan 20, 2025
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
138 changes: 76 additions & 62 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,75 +10,89 @@ 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: Configure Git credentials
run: |
git config --global url."https://x-access-token:${{ secrets.PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"

- name: Set up Ruby (for installing Bundler and Fastlane)
uses: ruby/setup-ruby@v1
with:
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:
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
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 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: Configure Git credentials
run: |
git config --global url."https://x-access-token:${{ secrets.PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"

- 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'

- name: Create config file
run: |
echo '{
"api_key": "${{ secrets.api_key }}",
"delivery_token": "${{ secrets.delivery_token }}",
"environment": "${{ secrets.environment }}"
}' > Tests/config.json

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 15,OS=17.2' \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
9 changes: 9 additions & 0 deletions .github/workflows/sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ jobs:
steps:
- uses: actions/checkout@master
- uses: snyk/actions/setup@master
- name: Configure Git credentials
run: |
git config --global url."https://x-access-token:${{ secrets.PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"

- name: Resolve Swift package dependencies
run: swift package resolve
- name: Run Snyk to check for vulnerabilities
run: snyk test --all-projects --fail-on=all
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Cleanup credentials
if: always()
run: rm -f ~/.gitconfig
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 "contentstack/contentstack-swift-dvr" "master"
github "contentstack/contentstack-utils-swift"
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 "contentstack/contentstack-swift-dvr" "c8040a2451e4bc2c312347531cac6c73f23ce50c"
github "contentstack/contentstack-utils-swift" "v1.3.4"
Loading
Loading