mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Improve logging
This commit is contained in:
parent
09d1ac9fc3
commit
c5671cf48a
3 changed files with 10 additions and 4 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
|
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue