Coder Social home page Coder Social logo

lcov-pull-request-report's Introduction

LCOV Report Comment Generator

Action for reporting LCOV code coverage on pull requests

Sample Report

LCOV Report - Todo App ✅

All Files

  • Lines: 1440/1842 (78.2%) ✅ (Minimum coverage is 70%)
  • Functions: N/A
  • Branches: N/A

Changed Files

  • Lines: 50/50 (100.0%) ✅ (Minimum coverage is 90%)
  • Functions: N/A
  • Branches: N/A
File Lines Functions Branches
app_user.dart 7/7 (100.0%) N/A N/A
cart_service.dart 43/43 (100.0%) N/A N/A

Usage

- uses: boris-amenitiz/[email protected]
  with:
    # Lcov file location. For example, coverage/lcov.info
    lcov-file: coverage/lcov.info

    # Github token required for getting list of changed files and posting comments
    github-token: ${{ secrets.GITHUB_TOKEN }}

    # Working directory
    # Default: empty (repository root)
    working-directory:

    # Report comment title
    # Default: empty
    comment-title:

    # All files minimum coverage in percentage. For example, 0, 50, 100
    # Default: 0
    all-files-minimum-coverage:

    # Changed files minimum coverage in percentage. For example, 0, 50, 100
    # Default: 0
    changed-files-minimum-coverage:

    # Artifact name of the generated html. Requires LCOV to be installed
    # Default: empty (skip uploading artifact)
    artifact-name:

Permissions

Write permission must be given for writing pull request comment. There are 2 ways:

Outputs

By default, action attaches comment to a pull request. However, if you want to use other action for publishing report, you can use the output as it follows:

- uses: boris-amenitiz/[email protected]
    # give the id for the step, to access outputs in another step.
    id: coverage

- uses: marocchino/sticky-pull-request-comment@v2
    with:
      # pass output from the previous step by id.
      message: ${{ steps.coverage.outputs.report }}

Also, you can use this data on other platforms. For instance, you can send report to your Slack or Jira.

License

The scripts and documentation in this project are released under the MIT License

lcov-pull-request-report's People

Contributors

bobobowis avatar kefasjw avatar

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.