chore: focus failed and flaky tests, no links in title (#24269)
Links don't work in the check titles: <img width="503" alt="image" src="https://github.com/microsoft/playwright/assets/9798949/6ad8f3d3-b96f-4f62-9d4e-cc3d473fd97a">
This commit is contained in:
parent
5ff1fadd7b
commit
91346c7012
8
.github/workflows/create_test_report.yml
vendored
8
.github/workflows/create_test_report.yml
vendored
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const reportDir = 'run-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}-${{ github.sha }}';
|
const reportDir = 'run-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}-${{ github.sha }}';
|
||||||
const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html`;
|
const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html#?q=s%3Afailed%20s%3Aflaky`;
|
||||||
core.notice('Report url: ' + reportUrl);
|
core.notice('Report url: ' + reportUrl);
|
||||||
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
|
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
|
||||||
const reportMd = await fs.promises.readFile('report.md', 'utf8');
|
const reportMd = await fs.promises.readFile('report.md', 'utf8');
|
||||||
|
|
@ -103,7 +103,7 @@ jobs:
|
||||||
body: [
|
body: [
|
||||||
`### [Test results](${reportUrl}) for "${{ github.event.workflow_run.name }}"`,
|
`### [Test results](${reportUrl}) for "${{ github.event.workflow_run.name }}"`,
|
||||||
reportMd,
|
reportMd,
|
||||||
'---',
|
'',
|
||||||
`Merge [workflow run](${mergeWorkflowUrl}).`
|
`Merge [workflow run](${mergeWorkflowUrl}).`
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
});
|
});
|
||||||
|
|
@ -117,11 +117,11 @@ jobs:
|
||||||
conclusion: 'success',
|
conclusion: 'success',
|
||||||
details_url: reportUrl,
|
details_url: reportUrl,
|
||||||
output: {
|
output: {
|
||||||
title: '[Test results](${reportUrl}) for "${{ github.event.workflow_run.name }}"',
|
title: 'Test results for "${{ github.event.workflow_run.name }}"',
|
||||||
summary: [
|
summary: [
|
||||||
reportMd,
|
reportMd,
|
||||||
'---',
|
'---',
|
||||||
`Merge [workflow run](${mergeWorkflowUrl}).`
|
`Full [HTML report](${reportUrl}). Merge [workflow run](${mergeWorkflowUrl}).`
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue