Skip to content

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

@grofit

Description

@grofit

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

Activity

irongut

irongut commented on Aug 21, 2022

@irongut
Owner

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

grofit

grofit commented on Aug 21, 2022

@grofit
Author

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

irongut commented on Aug 21, 2022

@irongut
Owner

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

added
SummaryAn issue related to creating the code coverage summary.
on Aug 21, 2022
added this to the vNext milestone on Aug 21, 2022
irongut

irongut commented on Aug 21, 2022

@irongut
Owner

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

irongut commented on Aug 21, 2022

@irongut
Owner

@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

Metadata

Metadata

Assignees

Labels

SummaryAn issue related to creating the code coverage summary.enhancementNew feature or request

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @grofit@irongut

      Issue actions

        Add ability to add summary to a section on the left (runs?) on github actions page · Issue #66 · irongut/CodeCoverageSummary