Skip to content

Commit

Permalink
feat(summary): add gh summary of results
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Murray committed Jun 3, 2022
1 parent b4b3ac1 commit 03567e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75308,9 +75308,21 @@ const runTests = async () => {
debug(`Cypress options ${JSON.stringify(cypressOptions)}`)

const onTestsFinished = (testResults) => {
console.log(
'🚀 ~ file: index.js ~ line 701 ~ onTestsFinished ~ testResults',
testResults
)
const dashboardUrl = testResults.runUrl
process.chdir(startWorkingDirectory)

const summary = core.summary

summary.addTable([
testResults.message,
testResults.failures,
testResults.totalFailed
])

if (testResults.failures) {
console.error('Test run failed, code %d', testResults.failures)
console.error('More information might be available above')
Expand Down
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,21 @@ const runTests = async () => {
debug(`Cypress options ${JSON.stringify(cypressOptions)}`)

const onTestsFinished = (testResults) => {
console.log(
'🚀 ~ file: index.js ~ line 701 ~ onTestsFinished ~ testResults',
testResults
)
const dashboardUrl = testResults.runUrl
process.chdir(startWorkingDirectory)

const summary = core.summary

summary.addTable([
testResults.message,
testResults.failures,
testResults.totalFailed
])

if (testResults.failures) {
console.error('Test run failed, code %d', testResults.failures)
console.error('More information might be available above')
Expand Down

0 comments on commit 03567e0

Please sign in to comment.