Skip to content

Commit 03567e0

Browse files
author
Adam Murray
committed
feat(summary): add gh summary of results
1 parent b4b3ac1 commit 03567e0

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

dist/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75308,9 +75308,21 @@ const runTests = async () => {
7530875308
debug(`Cypress options ${JSON.stringify(cypressOptions)}`)
7530975309

7531075310
const onTestsFinished = (testResults) => {
75311+
console.log(
75312+
'🚀 ~ file: index.js ~ line 701 ~ onTestsFinished ~ testResults',
75313+
testResults
75314+
)
7531175315
const dashboardUrl = testResults.runUrl
7531275316
process.chdir(startWorkingDirectory)
7531375317

75318+
const summary = core.summary
75319+
75320+
summary.addTable([
75321+
testResults.message,
75322+
testResults.failures,
75323+
testResults.totalFailed
75324+
])
75325+
7531475326
if (testResults.failures) {
7531575327
console.error('Test run failed, code %d', testResults.failures)
7531675328
console.error('More information might be available above')

index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,21 @@ const runTests = async () => {
698698
debug(`Cypress options ${JSON.stringify(cypressOptions)}`)
699699

700700
const onTestsFinished = (testResults) => {
701+
console.log(
702+
'🚀 ~ file: index.js ~ line 701 ~ onTestsFinished ~ testResults',
703+
testResults
704+
)
701705
const dashboardUrl = testResults.runUrl
702706
process.chdir(startWorkingDirectory)
703707

708+
const summary = core.summary
709+
710+
summary.addTable([
711+
testResults.message,
712+
testResults.failures,
713+
testResults.totalFailed
714+
])
715+
704716
if (testResults.failures) {
705717
console.error('Test run failed, code %d', testResults.failures)
706718
console.error('More information might be available above')

0 commit comments

Comments
 (0)