Skip to content

Commit 39a8751

Browse files
authored
ci: Add watchOS build to TestHost (#105)
* ci: Remove watch build from test suite * fix watch build in SPI * Remove watch from test project again * improve CI watch build * Add watch to test host * Update ci.yml
1 parent 0902da8 commit 39a8751

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: Use multiple cores
115115
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
116116
- name: Build
117-
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -target ParseSwift | xcpretty
117+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace Parse.xcworkspace -scheme ParseSwift -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 8\ \(45mm\) -derivedDataPath DerivedData clean build | xcpretty
118118
env:
119119
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
120120

@@ -152,7 +152,7 @@ jobs:
152152
env:
153153
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
154154

155-
xcode-test-tvos-5_5:
155+
xcode-test-5_5:
156156
timeout-minutes: 15
157157
needs: xcode-build-watchos
158158
runs-on: macos-12

.spi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ version: 1
22
builder:
33
configs:
44
- documentation_targets: [ParseSwift]
5+
- platform: watchos
6+
scheme: "ParseSwift"

ParseSwift.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@
21282128
PRODUCT_BUNDLE_IDENTIFIER = com.parse.TestHost;
21292129
PRODUCT_NAME = "$(TARGET_NAME)";
21302130
SDKROOT = auto;
2131-
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx";
2131+
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos";
21322132
SUPPORTS_MACCATALYST = NO;
21332133
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
21342134
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -2172,7 +2172,7 @@
21722172
PRODUCT_BUNDLE_IDENTIFIER = com.parse.TestHost;
21732173
PRODUCT_NAME = "$(TARGET_NAME)";
21742174
SDKROOT = auto;
2175-
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx";
2175+
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos";
21762176
SUPPORTS_MACCATALYST = NO;
21772177
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
21782178
SWIFT_EMIT_LOC_STRINGS = YES;

Sources/ParseSwift/Objects/ParseInstallation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ public extension Sequence where Element: ParseInstallation {
11281128
} else {
11291129
callbackQueue.async {
11301130
completion(.failure(ParseError(code: .otherCause,
1131-
message: "all items to fetch must be of the same class")))
1131+
message: "All items to fetch must be of the same class")))
11321132
}
11331133
}
11341134
}

Sources/ParseSwift/Objects/ParseObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ transactions for this call.
632632
} else {
633633
callbackQueue.async {
634634
completion(.failure(ParseError(code: .otherCause,
635-
message: "all items to fetch must be of the same class")))
635+
message: "All items to fetch must be of the same class")))
636636
}
637637
}
638638
}

Sources/ParseSwift/Objects/ParseUser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ public extension Sequence where Element: ParseUser {
15031503
} else {
15041504
callbackQueue.async {
15051505
completion(.failure(ParseError(code: .otherCause,
1506-
message: "all items to fetch must be of the same class")))
1506+
message: "All items to fetch must be of the same class")))
15071507
}
15081508
}
15091509
}

Tests/ParseSwiftTests/ParseCloudableTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ParseCloudableTests: XCTestCase { // swiftlint:disable:this type_body_leng
6767
let cloud = Cloud(functionJobName: "test")
6868
let encoded = try JSONEncoder().encode(cloud)
6969
let decoded = try JSONDecoder().decode([String: String].self, from: encoded)
70-
XCTAssertEqual(decoded, expected, "all keys should show up in JSONEncoder")
70+
XCTAssertEqual(decoded, expected, "All keys should show up in JSONEncoder")
7171
}
7272

7373
func testJSONEncoding2() throws {
@@ -78,7 +78,7 @@ class ParseCloudableTests: XCTestCase { // swiftlint:disable:this type_body_leng
7878
let cloud = Cloud2(functionJobName: "test", customKey: "parse")
7979
let encoded = try JSONEncoder().encode(cloud)
8080
let decoded = try JSONDecoder().decode([String: String].self, from: encoded)
81-
XCTAssertEqual(decoded, expected, "all keys should show up in JSONEncoder")
81+
XCTAssertEqual(decoded, expected, "All keys should show up in JSONEncoder")
8282
}
8383

8484
func testParseEncoding() throws {

0 commit comments

Comments
 (0)