Skip to content

Commit 8304796

Browse files
committed
Try to Get Coveralls Working with Pull Requests
1 parent 4c975ba commit 8304796

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/coveralls.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
name: Coveralls
1818

19-
on: [pull_request]
19+
on: [push, pull_request]
2020

2121
jobs:
2222
build:
@@ -31,8 +31,14 @@ jobs:
3131
uses: actions/setup-java@v1
3232
with:
3333
java-version: 8
34-
- name: Report Coverage to Coveralls
34+
- name: Report Coverage to Coveralls for Pull Requests
35+
if: ${{ github.event.name == 'pull_request' }}
3536
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
PR_NUMBER: ${{ github.event.number }}
40+
- name: Report Coverage to Coveralls for General Push
41+
if: ${{ github.event.name == 'push' }}
42+
run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)