mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
update
This commit is contained in:
parent
9b92097e9f
commit
9292dc5744
3 changed files with 5 additions and 4 deletions
|
|
@ -32,8 +32,8 @@
|
||||||
"author": "Michal Dorner <dorner.michal@gmail.com>",
|
"author": "Michal Dorner <dorner.michal@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.6.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.0",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
"@slack/webhook": "^6.0.0",
|
"@slack/webhook": "^6.0.0",
|
||||||
"adm-zip": "^0.5.10",
|
"adm-zip": "^0.5.10",
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ class TestReporter {
|
||||||
|
|
||||||
core.info('Creating report summary')
|
core.info('Creating report summary')
|
||||||
const {listSuites, listTests, onlySummary} = this
|
const {listSuites, listTests, onlySummary} = this
|
||||||
const baseUrl = createResp.data.html_url as string
|
const baseUrl = createResp.data.html_url || ''
|
||||||
const summary = getReport(results, {listSuites, listTests, baseUrl, onlySummary})
|
const summary = getReport(results, {listSuites, listTests, baseUrl, onlySummary})
|
||||||
|
|
||||||
core.info('Creating annotations')
|
core.info('Creating annotations')
|
||||||
|
|
@ -232,6 +232,7 @@ class TestReporter {
|
||||||
core.info(`Check run HTML: ${resp.data.html_url}`)
|
core.info(`Check run HTML: ${resp.data.html_url}`)
|
||||||
core.setOutput('url', resp.data.url)
|
core.setOutput('url', resp.data.url)
|
||||||
core.setOutput('url_html', resp.data.html_url)
|
core.setOutput('url_html', resp.data.html_url)
|
||||||
|
core.info(`Check run details: ${resp.data.details_url}`)
|
||||||
|
|
||||||
if (isFailed && this.slackWebhook && this.context.branch === 'master') {
|
if (isFailed && this.slackWebhook && this.context.branch === 'master') {
|
||||||
const webhook = new IncomingWebhook(this.slackWebhook)
|
const webhook = new IncomingWebhook(this.slackWebhook)
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ async function listGitTree(octokit: InstanceType<typeof GitHub>, sha: string, pa
|
||||||
if (tr.type === 'blob') {
|
if (tr.type === 'blob') {
|
||||||
result.push(file)
|
result.push(file)
|
||||||
} else if (tr.type === 'tree' && truncated) {
|
} else if (tr.type === 'tree' && truncated) {
|
||||||
const files = await listGitTree(octokit, tr.sha as string, `${file}/`)
|
const files = await listGitTree(octokit, tr.sha || '', `${file}/`)
|
||||||
result.push(...files)
|
result.push(...files)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue