Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120301,8 +120301,15 @@ async function run() {
await (0, composer_1.runComposer)({ execute: inputs.execute, env });
}
catch (e) {
// Composer exits non-zero when tests fail — that's the normal reporting
// channel. Do NOT rethrow, or we skip the parse/upload/PR-comment path
// and lose all observability. The final setFailed() at the end still
// reflects report.failed > 0. If composer literally could not run
// (missing binary, missing composer.json handled upstream), the caller
// will see the message in the log.
stepFailed = true;
throw e;
const msg = e instanceof Error ? e.message : String(e);
core.warning(`composer exited non-zero — will parse results.json anyway. Reason: ${msg}`);
}
let report = {
passed: 0, failed: 0, skipped: 0, todos: 0, total: 0, durationMs: 0, failures: [],
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ export async function run(): Promise<void> {
try {
await runComposer({ execute: inputs.execute, env });
} catch (e) {
// Composer exits non-zero when tests fail — that's the normal reporting
// channel. Do NOT rethrow, or we skip the parse/upload/PR-comment path
// and lose all observability. The final setFailed() at the end still
// reflects report.failed > 0. If composer literally could not run
// (missing binary, missing composer.json handled upstream), the caller
// will see the message in the log.
stepFailed = true;
throw e;
const msg = e instanceof Error ? e.message : String(e);
core.warning(`composer exited non-zero — will parse results.json anyway. Reason: ${msg}`);
}

let report: TestReport = {
Expand Down
Loading