GithubHelp home page GithubHelp logo

beldar / lcov-reporter-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from romeovs/lcov-reporter-action

0.0 1.0 1.0 1019 KB

Comments a pull request with the jest code coverage

JavaScript 100.00%

lcov-reporter-action's Introduction

Jest reporter action

This action comments a pull request with a HTML test coverage report.

The report is based on the lcov coverage report generated by your test runner.

Note that this action does not run any tests, but instead expects the tests to have been run by another action already.

Example output

Total Coverage: 99.39%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   i18n.tsx100%100%100%
src/components/i18n
   context.tsx100%100%100%
   hydrate.tsx100%100%100%
   index.tsx85.71%88.89%100%54
   link.tsx100%100%100%
src/components/icon
   index.tsx100%100%100%
   props.tsx100%100%100%
src/components/layout
   index.tsx100%100%100%
src/components/release-artist-link
   index.tsx66.67%100%100%24, 25, 26
src/components/release-companies
   index.tsx100%100%100%
src/components/release-credits
   index.tsx85.71%100%91.30%37, 38, 40, 43
src/components/release-format-link
   index.tsx100%100%100%
src/components/release-header
   index.tsx58.33%100%100%79, 80, 82, 85, 86
src/components/release-label-link
   index.tsx100%100%100%
src/components/release-series-link
   index.tsx0%100%100%19
src/components/release-thumbnail
   icon.tsx50%100%83.33%26, 30
   index.tsx75%100%100%42
src/components/search
   index.tsx100%100%100%
   mock.tsx100%100%100%
   ui.tsx100%100%100%
src/lib
   add-state.tsx100%100%100%
   intersperse.tsx100%100%100%
   keycodes.tsx100%100%100%
   slug.tsx100%100%100%
src/services
   autocomplete.tsx100%100%100%

Inputs

github-token (Required)

Github token used for posting the comment. To use the key provided by the GitHub action runner, use ${{ secrets.GITHUB_TOKEN }}.

lcov-file (Optional)

The location of the lcov file to read the coverage report from. Defaults to ./coverage/lcov.info.

lcov-base (Optional)

The location of the lcov file resulting from running the tests in the base branch. When this is set a diff of the coverage percentages is shown.

hide-table (Optional)

Wether to show the coverage table or not. If "true" is passed, only the percentage diff will be shown

Example usage

uses: beldar/[email protected]
with:
  github-token: ${{ secrets.GITHUB_TOKEN }}
  lcov-file: ./coverage/lcov.info

Without coverage table

uses: beldar/[email protected]
with:
  github-token: ${{ secrets.GITHUB_TOKEN }}
  lcov-file: ./coverage/lcov.info
  hide-table: true

Acknowledgements

The initial code is based on romeovs/lcov-reporter-action.

lcov-reporter-action's People

Contributors

beldar avatar br0p0p avatar romeovs avatar ziishaned avatar

Watchers

 avatar

Forkers

manarbenkraouda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.