mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-02 11:25:21 -08:00
Fail the action if no test results are processed
This commit is contained in:
@@ -123,6 +123,12 @@ class TestReporter {
|
||||
|
||||
if (this.failOnError && isFailed) {
|
||||
core.setFailed(`Failed test has been found and 'fail-on-error' option is set to ${this.failOnError}`)
|
||||
return
|
||||
}
|
||||
|
||||
if (results.length === 0) {
|
||||
core.setFailed(`No test results file has been processed`)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user