Actually fail CI when tests fail#313
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dfed--watch-ci #313 +/- ##
=================================================
Coverage ? 82.52%
=================================================
Files ? 16
Lines ? 984
Branches ? 0
=================================================
Hits ? 812
Misses ? 172
Partials ? 0 |
| jobs: | ||
| xcode-build-12: | ||
| name: Xcode 12 Build | ||
| runs-on: macOS-11 |
| } | ||
| } | ||
|
|
||
| var shouldTest: Bool { |
There was a problem hiding this comment.
well this is nice at least! always true!
| exit(0) | ||
| throw TaskError.code(1) |
There was a problem hiding this comment.
From #300. Reverting so we can catch errors.
| do { | ||
| try execute(commandPath: "/usr/bin/xcodebuild", arguments: xcodeBuildArguments) | ||
| } catch { | ||
| print("xcodebuild failed with error: \(error)") | ||
| } | ||
| try execute(commandPath: "/usr/bin/xcodebuild", arguments: xcodeBuildArguments) |
| guard testEnvironmentIsSignedOrDoesNotRequireEntitlement() else { | ||
| return | ||
| } |
There was a problem hiding this comment.
on recent Xcodes, shared group valets require a signed environment. Which makes sense... but is annoying.
|
|
||
| // kSecAttrAccount entry is expected to be a CFString, but a CFDataRef can also be stored as a value. | ||
| let keychainData = [ | ||
| let keychainData: CFDictionary = [ |
There was a problem hiding this comment.
Why does Xcode 13 require this? No idea. But it does. Swift compiler bug I guess.
| @@ -0,0 +1,11 @@ | |||
| { | |||
There was a problem hiding this comment.
our old watchOS target was old. Let's update it. This belonged in #311 but, well, CI told us everything worked 😅
* Get watchOS tests running in CI * Run the tests * Parallelize (#312) * Actually fail CI when tests fail (#313) * Actually fail CI when tests fail * Throw when we encounter errors * Remove builds with Xcode that do not support Swift Concurrency * Use appropriate Xcode for the job * More tests require signed environments now * Fix macOS 14 test sdk * Use correct simulator name * Do not embed watchOS * Massage compiler * Remove unnecessary Valet watchOS Test Host App.app * New watch host target * simpler * stop testing watchOS_8 * Xcode 13 or later
Uh oh.
This regressed in #300