Improve logging

This commit is contained in:
Michal Dorner 2021-02-17 08:12:45 +01:00
parent 09d1ac9fc3
commit c5671cf48a
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
3 changed files with 10 additions and 4 deletions

5
dist/index.js generated vendored
View file

@ -264,6 +264,7 @@ class TestReporter {
core.info(`Changing directory to '${this.workDirInput}'`); core.info(`Changing directory to '${this.workDirInput}'`);
process.chdir(this.workDirInput); process.chdir(this.workDirInput);
} }
core.info(`Check runs will be created with SHA=${this.context.sha}`);
const pattern = this.path.split(','); const pattern = this.path.split(',');
const inputProvider = this.artifact const inputProvider = this.artifact
? new artifact_provider_1.ArtifactProvider(this.octokit, this.artifact, this.name, pattern, this.context.sha, this.context.runId, this.token) ? new artifact_provider_1.ArtifactProvider(this.octokit, this.artifact, this.name, pattern, this.context.sha, this.context.runId, this.token)
@ -337,7 +338,9 @@ class TestReporter {
}, },
...github.context.repo ...github.context.repo
}); });
core.info(`Check run create response: ${resp.status} - ${resp.url}`); core.info(`Check run create response: ${resp.status}`);
core.info(`Check run URL: ${resp.data.url}`);
core.info(`Check run HTML: ${resp.data.html_url}`);
return results; return results;
} }
getParser(reporter, options) { getParser(reporter, options) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -66,8 +66,9 @@ class TestReporter {
process.chdir(this.workDirInput) process.chdir(this.workDirInput)
} }
const pattern = this.path.split(',') core.info(`Check runs will be created with SHA=${this.context.sha}`)
const pattern = this.path.split(',')
const inputProvider = this.artifact const inputProvider = this.artifact
? new ArtifactProvider( ? new ArtifactProvider(
this.octokit, this.octokit,
@ -160,7 +161,9 @@ class TestReporter {
}, },
...github.context.repo ...github.context.repo
}) })
core.info(`Check run create response: ${resp.status} - ${resp.url}`) core.info(`Check run create response: ${resp.status}`)
core.info(`Check run URL: ${resp.data.url}`)
core.info(`Check run HTML: ${resp.data.html_url}`)
return results return results
} }