Skip to content

Commit c898306

Browse files
committed
Add workflow to upload codacy report
1 parent c2e23e9 commit c898306

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/codacy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Codacy Coverage Reporter
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- Build and Test
7+
types:
8+
- completed
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
report-coverage:
16+
if: github.repository == 'btcpay-monero/monero-csharp' && github.event.workflow_run.conclusion == 'success'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Download coverage report
20+
uses: actions/download-artifact@v5
21+
with:
22+
name: coverage-report
23+
github-token: ${{ secrets.API_GITHUB }}
24+
run-id: ${{ github.event.workflow_run.id }}
25+
- name: Run codacy-coverage-reporter
26+
uses: codacy/codacy-coverage-reporter-action@v1
27+
with:
28+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
29+
coverage-reports: dotcover.xml

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and test
1+
name: Build and Test
22

33
on:
44
push:

0 commit comments

Comments
 (0)