mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Move outputs to run function
This commit is contained in:
parent
ff6e1f225b
commit
64efc64bfa
1 changed files with 1 additions and 2 deletions
|
|
@ -129,6 +129,7 @@ class TestReporter {
|
||||||
core.setOutput('failed', failed)
|
core.setOutput('failed', failed)
|
||||||
core.setOutput('skipped', skipped)
|
core.setOutput('skipped', skipped)
|
||||||
core.setOutput('time', time)
|
core.setOutput('time', time)
|
||||||
|
core.setOutput('runid', this.context.runId)
|
||||||
|
|
||||||
if (this.failOnError && isFailed) {
|
if (this.failOnError && isFailed) {
|
||||||
core.setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`)
|
core.setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`)
|
||||||
|
|
@ -193,8 +194,6 @@ class TestReporter {
|
||||||
core.info(`Check run create response: ${resp.status}`)
|
core.info(`Check run create response: ${resp.status}`)
|
||||||
core.info(`Check run URL: ${resp.data.url}`)
|
core.info(`Check run URL: ${resp.data.url}`)
|
||||||
core.info(`Check run HTML: ${resp.data.html_url}`)
|
core.info(`Check run HTML: ${resp.data.html_url}`)
|
||||||
core.setOutput('url', resp.data.url)
|
|
||||||
core.setOutput('url_html', resp.data.html_url)
|
|
||||||
|
|
||||||
return results
|
return results
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue