Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
message-square

GitHub Action

Comment Test Coverage

0.8 Pre-release

Comment Test Coverage

message-square

Comment Test Coverage

Read a Test Coverage json-summary test report and add stats on to PR using a table that rewrites itself on successive pushes

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Comment Test Coverage

uses: AthleticNet/[email protected]

Learn more about this action in AthleticNet/comment-test-coverage

Choose a version

Comment Test Coverage

A GitHub action to comment on a commit on GitHub with a simple test coverage summary from Karma.

Repurposed from Commit Comment by Peter Evans Commit Comment Example

Usage

      - name: Create commit comment
        uses: jacobbowdoin/comment-test-coverage@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          body: |
            This is a multi-line test comment
            - With GitHub **Markdown**
            - Created by [comment-test-coverage][1]

            [1]: https://github.com/jacobbowdoin/comment-test-coverage

Parameters

  • token (required) - The GitHub authentication token
  • body (required) - The contents of the comment.

Evaluating environment variables

Environment variables can be evaluated in the body input as follows.

      - name: Create commit comment
        uses: jacobbowdoin/comment-test-coverage@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          body: |
            My env var: ${process.env.MY_ENV_VAR}

License

Repurposed from https://github.com/peter-evans/commit-comment, Copyright (c) 2019 Peter Evans