1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-05-07 11:07:35 +02:00

Add generated summary action output

This commit is contained in:
Jozef Izso 2026-04-25 12:10:34 +02:00
parent 1ab1766274
commit f610967bd1
Failed to extract signature
4 changed files with 7 additions and 0 deletions

View file

@ -221,6 +221,7 @@ class TestReporter {
core.info('Summary content:')
core.info(summary)
core.setOutput('summary', summary)
await core.summary.addRaw(summary).write()
} else {
core.info(`Creating check run ${name}`)
@ -252,6 +253,7 @@ class TestReporter {
core.info('Creating annotations')
const annotations = getAnnotations(results, this.maxAnnotations)
core.setOutput('summary', summary)
const isFailed = this.failOnError && results.some(tr => tr.result === 'failed')
const conclusion = isFailed ? 'failure' : 'success'