update logging and test report

This commit is contained in:
Connor Vidlock 2024-01-29 15:59:51 -06:00
parent 2a53a9deba
commit cd976285dc
No known key found for this signature in database
GPG key ID: BADEF4A267C14600
3 changed files with 11 additions and 8 deletions

4
dist/index.js generated vendored
View file

@ -313,8 +313,8 @@ class TestReporter {
return yield this.octokit.rest.checks.update(Object.assign(Object.assign({}, requestParams), { output: Object.assign(Object.assign({}, requestParams.output), { annotations }) }));
});
this.octokit = github.getOctokit(this.token);
if (this.listSuites !== 'all' && this.listSuites !== 'failed') {
core.setFailed(`Input parameter 'list-suites' has invalid value`);
if (this.listSuites !== 'all' && this.listSuites !== 'failed' && this.listSuites !== 'non-skipped') {
core.setFailed(`Input parameter 'list-suites' has invalid value of ${this.listSuites}`);
return;
}
if (this.listTests !== 'all' && this.listTests !== 'failed' && this.listTests !== 'none') {