1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-02-04 13:37:56 +01:00

Updates to README and info logs

This commit is contained in:
Michal Dorner 2021-02-01 11:14:07 +01:00
parent efb99aed01
commit 9c4a2c56d7
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
7 changed files with 12 additions and 78 deletions

View file

@ -52,11 +52,12 @@ async function main(): Promise<void> {
}
if (workDirInput) {
core.info(`Changing directory to ${workDirInput}`)
core.info(`Changing directory to '${workDirInput}'`)
process.chdir(workDirInput)
}
const workDir = normalizeDirPath(process.cwd(), true)
core.info(`Using working-directory '${workDir}'`)
const octokit = github.getOctokit(token)
const sha = getCheckRunSha()
@ -81,7 +82,7 @@ async function main(): Promise<void> {
const results: TestRunResult[] = []
for (const file of files) {
core.info(`Processing test report ${file}`)
core.info(`Processing test report '${file}'`)
const content = await fs.promises.readFile(file, {encoding: 'utf8'})
const tr = await parser.parse(file, content)
results.push(tr)