Skip to content

Commit

Permalink
Release v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelGirodon committed Oct 14, 2024
1 parent e2b7770 commit 14c20f9
Show file tree
Hide file tree
Showing 11 changed files with 3,154 additions and 1,768 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 1.6.0 - 2024-10-14

- Add support for LCOV report format
- Update dependencies

## 1.5.0 - 2024-05-25

- Report skipped tests
Expand Down
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
![tests](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Fci-badges-action-junit-tests.json)
![coverage](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Fci-badges-action-cobertura-coverage.json)

This action generates badges (as JSON files) from Go, JUnit, Cobertura and
JaCoCo test and coverage reports (most test runners and code coverage tools,
This action generates badges (as JSON files) from Go, JUnit, Cobertura, JaCoCo
and LCOV test and coverage reports (most test runners and code coverage tools,
including Mocha, Jest, PHPUnit, c8, Istanbul/nyc, and more, support at least
one of these formats) and upload them to a Gist to make them available to
Shields through the endpoint feature with (almost) zero configuration.
Expand Down Expand Up @@ -69,6 +69,7 @@ from test report(s).
![coverage](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Frepo-go-coverage.json)
![coverage](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Frepo-cobertura-coverage.json)
![coverage](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Frepo-jacoco-coverage.json)
![coverage](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2F715c62717519f634185af0ebde234992%2Fraw%2Frepo-lcov-coverage.json)

This badge displays the percentage of covered lines extracted from a coverage
report.
Expand Down Expand Up @@ -157,6 +158,24 @@ from the first matching and valid report file.

➡️ `{repo}-[{ref}-]jacoco-coverage.json`

### LCOV

Write the coverage report to a file matching:

- `**/lcov.*`
- `**/*.lcov`

This is the default format and location with LCOV, but some code coverage
tools support this format too, natively or using an additional reporter:

- **c8**: `c8 --reporter lcov [...]` → `coverage/lcov.info`
- **Deno**: `deno test --coverage=cov_profile && deno coverage cov_profile --lcov --output=cov_profile.lcov`

The coverage will be computed using `LF` and `LH` keys, from the first
matching and valid report file.

➡️ `{repo}-[{ref}-]lcov-coverage.json`

## Notes

Storing badge JSON files on a Gist may seem tedious, but:
Expand Down
Loading

0 comments on commit 14c20f9

Please sign in to comment.