You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Comment Test Coverage
0.8
Pre-release
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
- 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
token
(required) - The GitHub authentication tokenbody
(required) - The contents of the comment.
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}
Repurposed from https://github.com/peter-evans/commit-comment, Copyright (c) 2019 Peter Evans