Skip to content

Commit

Permalink
Added Carthage installation CI step.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Nov 12, 2023
1 parent b44e1a4 commit 24f5e21
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/integration-test-iOS16_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,13 @@ jobs:
export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF
export PACKAGE_REVISION=$GITHUB_SHA
swift test --package-path Examples/SPM -v
- name: Carthage - Installation Test
working-directory: ./Examples/AblyCarthage
run: |
echo 'Clearing carthage cache...'
rm -rf ~/Library/Caches/org.carthage.CarthageKit
echo 'Installing cathage dependencies...'
carthage update --use-xcframeworks --platform iOS --no-use-binaries
echo 'Building AblyCarthage example...'
xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"
12 changes: 11 additions & 1 deletion .github/workflows/integration-test-iOS17_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Build APNS Example Project
working-directory: ./Examples/AblyPush
run: |
xcodebuild build -scheme "AblyPushExample" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"
xcodebuild build -scheme "AblyPushExample" -destination "platform=iOS Simulator,name=iPhone 15" -configuration "Debug"
- name: Xcodebuild Logs Artifact
if: always()
Expand Down Expand Up @@ -121,3 +121,13 @@ jobs:
export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF
export PACKAGE_REVISION=$GITHUB_SHA
swift test --package-path Examples/SPM -v
- name: Carthage - Installation Test
working-directory: ./Examples/AblyCarthage
run: |
echo 'Clearing carthage cache...'
rm -rf ~/Library/Caches/org.carthage.CarthageKit
echo 'Installing cathage dependencies...'
carthage update --use-xcframeworks --platform iOS --no-use-binaries
echo 'Building AblyCarthage example...'
xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 15" -configuration "Debug"
10 changes: 10 additions & 0 deletions .github/workflows/integration-test-macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@ jobs:
export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF
export PACKAGE_REVISION=$GITHUB_SHA
swift test --package-path Examples/SPM -v
- name: Carthage - Installation Test
working-directory: ./Examples/AblyCarthage
run: |
echo 'Clearing carthage cache...'
rm -rf ~/Library/Caches/org.carthage.CarthageKit
echo 'Installing cathage dependencies...'
carthage update --use-xcframeworks --platform iOS --no-use-binaries
echo 'Building AblyCarthage example...'
xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"
10 changes: 10 additions & 0 deletions .github/workflows/integration-test-tvOS16_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@ jobs:
export PACKAGE_BRANCH_NAME=$GITHUB_HEAD_REF
export PACKAGE_REVISION=$GITHUB_SHA
swift test --package-path Examples/SPM -v
- name: Carthage - Installation Test
working-directory: ./Examples/AblyCarthage
run: |
echo 'Clearing carthage cache...'
rm -rf ~/Library/Caches/org.carthage.CarthageKit
echo 'Installing cathage dependencies...'
carthage update --use-xcframeworks --platform iOS --no-use-binaries
echo 'Building AblyCarthage example...'
xcodebuild build -scheme "AblyCarthage" -destination "platform=iOS Simulator,name=iPhone 14" -configuration "Debug"
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ platform :ios do

LANE_CONFIGS = [
LaneConfig.new(:test_iOS16_4, "Ably-iOS", ["iPhone 14 (16.4)"]),
LaneConfig.new(:test_iOS17_0, "Ably-iOS", ["iPhone 14 (17.0)"]),
LaneConfig.new(:test_iOS17_0, "Ably-iOS", ["iPhone 15 (17.0)"]),
LaneConfig.new(:test_tvOS16_4, "Ably-tvOS", ["Apple TV 4K (3rd generation) (16.4)"]),
LaneConfig.new(:test_macOS, "Ably-macOS")
]
Expand Down

0 comments on commit 24f5e21

Please sign in to comment.