Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX | 27-01-2025 | Release #54

Merged
merged 91 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 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
e35c198
fix: workflow fixes
Sep 21, 2024
da1168e
fix: workflow fixes 2
Sep 21, 2024
5b74946
fix: workflow fixes 2
Sep 21, 2024
611287c
fix: workflow fixes 4
Sep 21, 2024
da6d920
fix: workflow fixes 5
Sep 21, 2024
32939e5
fix: workflow fixes 6
Sep 21, 2024
468a935
fix: fixed package noy resolving issue
Sep 21, 2024
1b852ef
fix: fixed package noy resolving issue 2
Sep 21, 2024
73e66df
fix: fixed package noy resolving issue 2
Sep 21, 2024
a93c1bc
fix: fixed package noy resolving issue 2
Sep 21, 2024
029b51b
fix: another workflow fix attempt
Sep 22, 2024
2dc3b72
fix: another workflow fix attempt 2
Sep 22, 2024
1a64d4e
fix: another workflow fix attempt 3
Sep 22, 2024
f2082cc
fix: another workflow fix attempt 4
Sep 22, 2024
7822d70
fix: another workflow fix attempt 5
Sep 22, 2024
7f98bd7
fix: another workflow fix attempt 6
Sep 22, 2024
fb41038
fix: another workflow fix attempt 7
Sep 22, 2024
48973da
fix: another workflow fix attempt 7
Sep 22, 2024
88b4b38
fix: another workflow fix attempt 7
Sep 22, 2024
4fa9d98
fix: another workflow fix attempt 8
Sep 22, 2024
c27c0b0
fix: another workflow fix attempt 10
Sep 22, 2024
7e1a576
fix: another workflow fix attempt 11
Sep 22, 2024
c4b72ac
fix: another workflow fix attempt 12
Sep 22, 2024
2cf41c0
fix: added new job for ios tests
Sep 25, 2024
a38220a
fix: added new job for ios tests 2
Sep 25, 2024
f12c245
fix: added new job for ios tests 3
Sep 25, 2024
4099873
fix: added new job for ios tests 4
Sep 25, 2024
45144bd
fix: added new job for ios tests 5
Sep 25, 2024
9ca8bfe
fix: added new job for ios tests 6
Sep 25, 2024
b8acce0
fix: added new job for ios tests 7
Sep 25, 2024
b3303af
fix: added new job for ios tests 8
Sep 25, 2024
9f381fc
fix: added build command in the actions
Sep 25, 2024
4742eab
fix: added more changes
Sep 26, 2024
103d6fd
fix: excluded arch changes
Sep 26, 2024
c7b7578
fix: workflow related changes 1
Sep 26, 2024
f3e2074
fix: workflow related changes and test fixes
Sep 26, 2024
f9ba552
fix: updated macos test task
Sep 29, 2024
143bbbc
fix: updated macos test task 2
Sep 29, 2024
7e000c5
fix: updated macos test task 3
Sep 29, 2024
a50d4a6
fix: updated macos test task 4
Sep 29, 2024
30ef86f
fix: updated macos test task 5
Sep 29, 2024
263d537
fix: updated macos test task 6
Sep 29, 2024
4400175
fix: updated macos test task 7
Sep 29, 2024
1fddc89
fix: updated macos test task 8
Sep 29, 2024
796babd
fix: updated macos test task 9
Sep 29, 2024
92604ca
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
2aaca18
Merge pull request #49 from contentstack/feat/DX-748_new
netrajpatel Oct 10, 2024
68afab8
Merge pull request #53 from contentstack/development
reeshika-h Oct 21, 2024
e225ce9
changes made as suggested
reeshika-h Nov 3, 2024
80a2d8b
minor changes
reeshika-h Nov 6, 2024
7534f16
minor changes
reeshika-h Nov 6, 2024
5ab4450
minor change
reeshika-h Nov 6, 2024
aa1374c
Merge pull request #55 from contentstack/fix/DX-1400-GH-issue
reeshika-h Nov 7, 2024
5dd29c4
Contentstack-swift-dvr package has been added
reeshika-h Jan 3, 2025
e9008d6
Added a step to resolve dependencies before running snyk
reeshika-h Jan 3, 2025
9634ba2
Added pkg token for accessing private repos
reeshika-h Jan 3, 2025
d918ea8
changes made to handle [email protected] URLs
reeshika-h Jan 3, 2025
2dc58de
changes made since facing errors
reeshika-h Jan 3, 2025
ac2a9d1
fix changes 1
reeshika-h Jan 6, 2025
0128580
fix: changes 2
reeshika-h Jan 6, 2025
27bdd13
fix: changes 3
reeshika-h Jan 6, 2025
7badb38
fix : changes 4
reeshika-h Jan 6, 2025
dc20f48
Update sca-scan.yml
aravindbuilt Jan 7, 2025
9f3a074
Update sca-scan.yml
aravindbuilt Jan 7, 2025
e1ebef5
Adding the cartfile back, since certain workflows in the repo use Car…
reeshika-h Jan 7, 2025
5361f88
added secrets in the workflow
reeshika-h Jan 9, 2025
90413f2
correction made
reeshika-h Jan 9, 2025
1937a61
changes made in simulator configuration
reeshika-h Jan 10, 2025
8568488
changes 1
reeshika-h Jan 10, 2025
b3c6e40
changes 2
reeshika-h Jan 10, 2025
2242fa7
Merge pull request #59 from contentstack/fix/DX-963-ci-workflow
reeshika-h Jan 13, 2025
ad5ec30
updated the url for swift utils sdk
reeshika-h Jan 17, 2025
8ed5d8e
Merge pull request #58 from contentstack/feat/DX-1568-dvr-package-alt
reeshika-h Jan 17, 2025
1713f3a
Merge pull request #57 from contentstack/development
reeshika-h Jan 17, 2025
4c90b9c
fix 1
reeshika-h Jan 17, 2025
8e4ab63
changes to rerun actions
reeshika-h Jan 20, 2025
ca1e564
changes 2
reeshika-h Jan 20, 2025
47ca0c6
fulfill called multiple times hence causing workflow to fail
reeshika-h Jan 20, 2025
4790117
Merge pull request #61 from contentstack/fix/workflow
reeshika-h Jan 20, 2025
b3b82cc
Merge branch 'master' into fix/workflow
reeshika-h Jan 20, 2025
a1c7823
Merge pull request #64 from contentstack/fix/workflow
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
11 changes: 10 additions & 1 deletion .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 }}
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