Annotate failures for Github Actions so they're easier to spot.

This commit is contained in:
Stefan Ceriu
2026-08-10 19:35:36 +03:00
parent b829c6a06f
commit 42a7b6e8ee
7 changed files with 19 additions and 0 deletions
@@ -59,6 +59,7 @@ struct UnitTests: AsyncParsableCommand {
if !failures.isEmpty {
let failedSuites = "[\(failures.joined(separator: ","))]"
logger.error("\n❌ \(failures.count) test suite(s) failed \(failedSuites)\n")
CI.annotateError(title: "\(failures.count) test suite(s) failed", "Failing suites: \(failedSuites). Download the artifacts for the xcresult bundles.")
throw ExitCode.failure
}