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

GitHub Action

Codacy Coverage Reporter

0.2.0

Codacy Coverage Reporter

codacy

Codacy Coverage Reporter

Multi-language coverage reporter for Codacy

Installation

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

              

- name: Codacy Coverage Reporter

uses: codacy/codacy-coverage-reporter-action@0.2.0

Learn more about this action in codacy/codacy-coverage-reporter-action

Choose a version

codacy-coverage-reporter action

🤖 Automated multi-language coverage reporter for Codacy

This action runs the codacy-coverage-reporter for all commits and pull requests with your Codacy configuration.

Usage

Create a new workflow .yml file in the .github/workflows/ directory.

.github/workflows/codacy-coverage-reporter.yml

name: codacy-coverage-reporter

on: ["push"]

jobs:
  codacy-coverage-reporter:
    runs-on: ubuntu-latest
    name: codacy-coverage-reporter
    steps:
      - uses: actions/checkout@master
      - name: Run codacy-coverage-reporter
        uses: codacy/codacy-coverage-reporter-action@master
        with:
          project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
          coverage-reports: cobertura.xml

Workflow options

Change these options in the workflow .yml file to meet your GitHub project needs.

Setting Description Default value
project-token The project API token ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports Optional Comma separated list of reports to send ''