Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

$GITHUB_STEP_SUMMARY support #780

@hitmands

Description

@hitmands

Is your feature request related to a problem? Please describe.
It would be helpful to output a summary of the test coverage as ${GITHUB_STEP_SUMMARY} so
people could use a quick glance at how things went during the test run.

Describe the solution you'd like

- name: Unit Testing (Coverage)
  uses: paambaati/[email protected]
  env:
    CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TOKEN }}
  with:
    summary: true
    coverageCommand: yarn test --coverage
    coverageLocations: |
       ${{ github.workspace }}/package-one/*/dist/vitest-coverage/lcov.info:lcov
       ${{ github.workspace }}/package-two/*/dist/vitest-coverage/lcov.info:lcov
echo "${{ combined_coverage }}" >> $GITHUB_STEP_SUMMARY

Describe alternatives you've considered
Alternatively, just output the combined coverage, and leave it to the
user to direct the output somewhere

${{ steps.coverage.outputs.report }}

Additional context

  • Coverage should be combined to allow for monorepos and partial coverage files
  • The output should either be markdown, or json, to easily consume it

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions