Codacy Coverage Reporter #137
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codacy Coverage Reporter | |
on: | |
workflow_run: | |
workflows: | |
- Build and Test | |
types: | |
- completed | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
report-coverage: | |
if: github.repository == 'btcpay-monero/btcpayserver-monero-plugin' && github.event.workflow_run.conclusion == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download coverage report | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage-report | |
github-token: ${{ secrets.API_GITHUB }} | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Run codacy-coverage-reporter | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: dotcover.xml |