Files
coverage-comment-action/action.yml

31 lines
1013 B
YAML
Raw Normal View History

2021-07-15 21:12:15 +02:00
name: 'Coverage'
2021-09-25 09:50:58 +02:00
description: 'Publish diff coverage report as PR comment'
inputs:
2021-09-25 11:54:56 +02:00
GITHUB_TOKEN:
description: A GitHub token to write comments and write the badge to the wiki.
required: true
2021-09-25 11:54:56 +02:00
COVERAGE_FILE:
description: Path and filename of the coverage XML file to analyze.
default: "coverage.xml"
required: false
COMMENT_TEMPLATE:
description: >
Specify a different template for the comments that will be written on the PR.
required: false
DIFF_COVER_ARGS:
description: Additional args to pass to diff cover (one per line)
required: false
BADGE_ENABLED:
description: Whether or not a badge will be generated and stored.
default: "true"
required: false
runs:
2021-09-25 11:54:56 +02:00
using: 'docker'
image: 'Dockerfile'
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
COVERAGE_FILE: ${{ inputs.COVERAGE_FILE }}
COMMENT_TEMPLATE: ${{ inputs.COMMENT_TEMPLATE }}
DIFF_COVER_ARGS: ${{ inputs.DIFF_COVER_ARGS }}
BADGE_ENABLED: ${{ inputs.BADGE_ENABLED }}