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.
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:
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.
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:
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!