Update the github-ci with visionOS
This commit is contained in:
parent
24c18bf403
commit
fbfd18664c
|
@ -171,6 +171,7 @@ jobs:
|
|||
iOSSCHEME: SDWebImageSwiftUI
|
||||
TVSCHEME: SDWebImageSwiftUI tvOS
|
||||
WATCHSCHEME: SDWebImageSwiftUI watchOS
|
||||
VISIONOSSCHEME: SDWebImageSwiftUI visionOS
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
@ -185,7 +186,7 @@ jobs:
|
|||
run: brew install carthage
|
||||
|
||||
- name: Carthage Update
|
||||
run: ./carthage.sh update --platform "iOS, tvOS, macOS, watchOS"
|
||||
run: ./carthage.sh update --platform "iOS, tvOS, macOS, watchOS, visionOS"
|
||||
|
||||
- name: Build as dynamic frameworks
|
||||
run: |
|
||||
|
@ -194,3 +195,4 @@ jobs:
|
|||
xcodebuild build -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.iOSSCHEME }}" -sdk iphoneos -configuration Release | xcpretty -c
|
||||
xcodebuild build -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.TVSCHEME }}" -sdk appletvos -configuration Release | xcpretty -c
|
||||
xcodebuild build -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.WATCHSCHEME }}" -sdk watchos -configuration Release | xcpretty -c
|
||||
xcodebuild build -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.VISIONOSSCHEME }}" -sdk xros -configuration Release | xcpretty -c
|
||||
|
|
|
@ -17,7 +17,7 @@ class ImageManagerTests: XCTestCase {
|
|||
|
||||
func testImageManager() throws {
|
||||
let expectation = self.expectation(description: "ImageManager usage with Combine")
|
||||
let imageUrl = URL(string: "https://via.placeholder.com/500x500.jpg")
|
||||
let imageUrl = URL(string: "https://placehold.co/500x500.jpg")
|
||||
let imageManager = ImageManager()
|
||||
imageManager.setOnSuccess { image, cacheType, data in
|
||||
XCTAssertNotNil(image)
|
||||
|
|
|
@ -137,7 +137,7 @@ class WebImageTests: XCTestCase {
|
|||
|
||||
func testWebImageOnSuccessWhenCacheMiss() throws {
|
||||
let expectation = self.expectation(description: "WebImage onSuccess when cache miss")
|
||||
let imageUrl = URL(string: "http://via.placeholder.com/100x100.png")
|
||||
let imageUrl = URL(string: "https://placehold.co/100x100.png")
|
||||
let cacheKey = SDWebImageManager.shared.cacheKey(for: imageUrl)
|
||||
SDImageCache.shared.removeImageFromMemory(forKey: cacheKey)
|
||||
SDImageCache.shared.removeImageFromDisk(forKey: cacheKey)
|
||||
|
|
Loading…
Reference in New Issue