mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Add 'conclusion' output parameter
This commit is contained in:
parent
651a2e1bf1
commit
1ee2707b1a
5 changed files with 25 additions and 11 deletions
|
|
@ -25,15 +25,18 @@ async function main(): Promise<void> {
|
|||
const parser = getParser(reporter)
|
||||
const content = getFileContent(path)
|
||||
const result = await parser(content)
|
||||
const conclusion = result.success ? 'success' : 'failure'
|
||||
|
||||
await octokit.checks.create({
|
||||
head_sha: sha,
|
||||
name,
|
||||
conclusion,
|
||||
status: 'completed',
|
||||
conclusion: result.success ? 'success' : 'failure',
|
||||
output: result.output,
|
||||
...github.context.repo
|
||||
})
|
||||
|
||||
core.setOutput('conclusion', conclusion)
|
||||
}
|
||||
|
||||
function getParser(reporter: string): ParseTestResult {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue