cypress-io / github-action

GitHub Action for running Cypress end-to-end & component tests

Home Page:https://on.cypress.io/guides/continuous-integration/github-actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make table title configurable or based on step name

alex1701c opened this issue ยท comments

On one of my workflows, I run component and afterward E2E tests. The summary produces two tables with the identical heading "Cypress Results". I'd like to have the step name, a custom specified name or maybe just the hint if those are E2E/component tests in the table headers.

@alex1701c

This enhancement would be nice to have!

The example-chrome workflow has two steps calling Cypress in one job and the results are not clear since only the job name, not the step names, is shown:

image

The first result summary is actually from the step Chrome headless and the second result summary is from the step Chrome headed.

The results summary is produced using @actions/core and the best description I found was on https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/.

I may have overlooked something, but I couldn't see any obvious way to add the step name automatically into the summary. It may need an enhancement to @actions/core.summary to add the step name automatically.

@alex1701c

The most flexible solution would be to introduce a parameter to override the default heading "Cypress Results" of the Job Summary. If this were implemented, then the above Job Summary could be changed for instance like this:

example-chrome_after

I plan to submit a PR to implement this suggestion.

  • See PR #1056 for solution

I may have overlooked something, but I couldn't see any obvious way to add the step name automatically into the summary. It may need an enhancement to @actions/core.summary to add the step name automatically.

I couldn't find one either.

๐ŸŽ‰ This issue has been resolved in version 6.6.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

Thanks a lot!