Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/selfagency/merge-coverage

GitHub Action to merge coverage reports
https://github.com/selfagency/merge-coverage

clover cobertura coverage istanbul json lcov teamcity testing

Last synced: 3 months ago
JSON representation

GitHub Action to merge coverage reports

Awesome Lists containing this project

README

        

# Merge coverage reports GitHub Action

GitHub Action to merge coverage reports from parallelized test runners into a single report.

## Inputs

- `source`*: Path to source code (usually `${{ github.workspace }}`)
- `coverage-reports`*: Path to coverage reports (usually `${{ github.workspace }}/coverage`)
- `output-folder`*: Where to output merged reports
- `formats`: Comma-separated list of formats to output (`text`, `json`, and `json-summary` are always included)
- Options include `cobertura`, `clover`, `lcov`, `teamcity`, `text-loc`
- `artifacts`: Whether to upload the merged reports as artifacts (`true`/`false`), defaults to `true`

*Required field

## Outputs

- `report`: Full coverage report
- `json-summary`: JSON coverage summary

## Usage

```yaml
- name: Merge coverage reports
id: coverage
uses: selfagency/[email protected]
with:
source: ${{ github.workspace }}/${{ inputs.package }}
coverage-reports: ${{ github.workspace }}/${{ inputs.package }}/coverage
output-folder: ${{ github.workspace }}/${{ inputs.package }}/coverage-reports
formats: html
artifacts: false
```