Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to add summary to a section on the left (runs?) on github actions page #66

Open
grofit opened this issue Aug 16, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request Summary An issue related to creating the code coverage summary.
Milestone

Comments

@grofit
Copy link

grofit commented Aug 16, 2022

Feature Request

It would be nice if we could output a summary on the side (not sure of the term) on github actions, much like our unit test task does
image

As you can see on the left (bit I mean above) our unit test task outputs a section with the results, and it would be nice if the code coverage summary also wrote out to that section there too.

Expected Behaviour

Have a property that can be set to indicate if the summary should be output as a summary on the side

@grofit grofit added the enhancement New feature or request label Aug 16, 2022
@github-actions github-actions bot added this to To do in Enhancements Aug 16, 2022
@irongut
Copy link
Owner

irongut commented Aug 21, 2022

Hi @grofit I've not seen that done before. Could you tell me what task you're using to get those results?

@grofit
Copy link
Author

grofit commented Aug 21, 2022

Hey,

Thanks for getting back to me, its https://github.com/EnricoMi/publish-unit-test-result-action I use to get Unit Test results

@irongut
Copy link
Owner

irongut commented Aug 21, 2022

Thanks, it would be a nice feature so I'll see if I can work out how he's doing it.

@irongut irongut added the Summary An issue related to creating the code coverage summary. label Aug 21, 2022
@irongut irongut added this to the vNext milestone Aug 21, 2022
@irongut
Copy link
Owner

irongut commented Aug 21, 2022

Supercharging GitHub Actions with Job Summaries

Simply output Markdown content to a new environment variable we’ve introduced called $GITHUB_STEP_SUMMARY.

Job Summary Docs

@irongut
Copy link
Owner

irongut commented Aug 21, 2022

@grofit As a workaround you could add the following step to your workflow after CCS:

    - name: Output to Job Summary
      run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY

That doesn't add the item on the left but it does add the coverage to the job summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Summary An issue related to creating the code coverage summary.
Projects
Development

No branches or pull requests

2 participants