if the project does not compile and we have github token. we have tests 0/0, with failed 0. so setFailed is not set.
parent
4d6a166cb7
commit
bfe09c7c40
File diff suppressed because one or more lines are too long
|
@ -41,8 +41,8 @@ async function action() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (githubToken) {
|
if (githubToken) {
|
||||||
const failedTestCount = await ResultsCheck.createCheck(artifactsPath, githubToken, checkName);
|
const runSummary = await ResultsCheck.createCheck(artifactsPath, githubToken, checkName);
|
||||||
if (failedTestCount >= 1) {
|
if (runSummary.failed >= 1 || runSummary.total === 0 || runSummary.passed === 0) {
|
||||||
core.setFailed(`Test(s) Failed! Check '${checkName}' for details.`);
|
core.setFailed(`Test(s) Failed! Check '${checkName}' for details.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ class ResultsCheck {
|
||||||
|
|
||||||
// Call GitHub API
|
// Call GitHub API
|
||||||
await ResultsCheck.requestGitHubCheck(githubToken, checkName, output);
|
await ResultsCheck.requestGitHubCheck(githubToken, checkName, output);
|
||||||
return runSummary.failed;
|
return runSummary;
|
||||||
}
|
}
|
||||||
|
|
||||||
static async requestGitHubCheck(githubToken, checkName, output) {
|
static async requestGitHubCheck(githubToken, checkName, output) {
|
||||||
|
|
Loading…
Reference in New Issue