Skip to content

Codacy Coverage Reporter #168

Codacy Coverage Reporter

Codacy Coverage Reporter #168

name: Codacy Coverage Reporter
permissions: read-all
on:
workflow_run:
workflows: ["Run CI"]
types: [completed]
branches: [main]
workflow_dispatch:
jobs:
codacy-coverage-reporter:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
name: codacy-coverage-reporter
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ci.yml
workflow_conclusion: "success"
branch: main
event: push
name: coverage
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml