Skip to content

Publish Coverage Report #309

Publish Coverage Report

Publish Coverage Report #309

Workflow file for this run

# SPDX-FileCopyrightText: 2022 Daniele Tentoni <daniele.tentoni.1996@gmail.com
#
# SPDX-License-Identifier: MIT
name: Publish Coverage Report
on:
workflow_run:
workflows:
- "Run Unit Tests"
types:
- completed
jobs:
upload:
name: Upload Coverage
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: test.yml
name: code-coverage-report
workflow_conclusion: success
- name: Run Codacy Reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
- name: Prepare git repository
run: |
git init
- name: Publish 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: cov_html