Skip to content

Commit 35ec0d0

Browse files
Upload test coverage report on merge into main and comment the coverage only on PRs (#966)
1 parent 82c235a commit 35ec0d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/reports.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ name: Report tests results
1717
on:
1818
pull_request:
1919
branches: [ "main" ]
20+
push:
21+
branches: [ "main" ]
2022

2123
jobs:
2224
test:
@@ -43,6 +45,7 @@ jobs:
4345
- name: Add coverage JaCoCo report to PR
4446
id: jacoco
4547
uses: madrapps/[email protected]
48+
if: github.event_name == 'pull_request'
4649
with:
4750
paths: ${{ github.workspace }}/dumper/app/build/reports/jacoco/test/jacocoTestReport.xml
4851
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)