You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to support setting the summary results in the output of the github so they can be used in other jobs?
As a workaround, I have to parse the results from junit xml which is fine but it would be great to just consume it from cypress
github action as cypress github action is already parsing it and setting it as summary of the action.
The GITHUB_STEP_SUMMARY is lost when the workflow moves to the next step, so what you are asking for would need to be added to the action to preserve the summary details somewhere else.
@MikeMcC399 I have this PoC PR.
Can you please take a quick look and let me know if I'm on the right path with this, before creating a PR in this project?
Thanks!
I took a look at your PoC, however I can't really judge just looking at the code.
This new functionality should be tested and demonstrated in a workflow. Probably .github/workflows/example-recording.yml would be the best place to put that. You don't have to worry about the v9 examples, only the current version is relevant for new functionality.
When you are ready, you could go ahead and submit a PR to get feedback from the Cypress team.
If how ever you meant to say "Workflows" instead of "Jobs", then you really need define what the circumstances are.
if you have separate workflow files that need outputs from other workflow files, then you should probably be thinking about abstracting those workflow files into callable workflows that accept inputs.
I agree that this would be very useful as an output. My use case is that I use parallel tests in a matrix and I would like to aggregate all of the summary tables into 1 table at the end of my workflow so it's more compact and easier to read.
Activity
MikeMcC399 commentedon Mar 3, 2023
@rajeshshou
The action uses "
core.summaryAccessible using environment fileGITHUB_STEP_SUMMARY". See Workflow commands for GitHub Actions and Adding a job summary which gives more detail on what is being used.The
GITHUB_STEP_SUMMARYis lost when the workflow moves to the next step, so what you are asking for would need to be added to the action to preserve the summary details somewhere else.rajeshshou commentedon Mar 8, 2023
@MikeMcC399 Exactly. One possible and easy solution is adding it to output similar to what is done for dashboard url here.
https://github.com/cypress-io/github-action/blob/master/index.js#L759
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
MikeMcC399 commentedon Mar 10, 2023
@rajeshshou
If you have a tested solution for your request you could submit this as a Pull Request, or are you requesting that somebody else implement your idea?
mihaisee commentedon Jun 15, 2023
@MikeMcC399 I have this PoC PR.
Can you please take a quick look and let me know if I'm on the right path with this, before creating a PR in this project?
Thanks!
MikeMcC399 commentedon Jun 15, 2023
@mihaisee
I took a look at your PoC, however I can't really judge just looking at the code.
This new functionality should be tested and demonstrated in a workflow. Probably .github/workflows/example-recording.yml would be the best place to put that. You don't have to worry about the v9 examples, only the current version is relevant for new functionality.
When you are ready, you could go ahead and submit a PR to get feedback from the Cypress team.
Dale-777 commentedon Jul 7, 2023
please can this feature be reviewed and approved
airtonix commentedon Jul 19, 2024
Not sure why you're mentioning
GITHUB_STEP_SUMMARYand this in the same solution:I'm not sure you can utilise the information printed from one job into
GITHUB_STEP_SUMMARYin another job.What you really wanted was
GITHUB_OUTPUTIf how ever you meant to say "Workflows" instead of "Jobs", then you really need define what the circumstances are.
if you have separate workflow files that need outputs from other workflow files, then you should probably be thinking about abstracting those workflow files into callable workflows that accept inputs.
nrgbistro commentedon Aug 29, 2024
I agree that this would be very useful as an output. My use case is that I use parallel tests in a matrix and I would like to aggregate all of the summary tables into 1 table at the end of my workflow so it's more compact and easier to read.