From 1f299dc1962104b9ba54657ef1790ebaa8b8fb86 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 15:42:16 -0500 Subject: [PATCH 1/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index c57a7eedb..e4a0e272a 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -32,6 +32,6 @@ jobs: with: java-version: 8 - name: Report Coverage to Coveralls - run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$COVERALLS_REPO_TOKEN + run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=GITHUB_TOKEN -DserviceName=github env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 2757c071874fd67358b73db2a079e149e21e3057 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 15:43:19 -0500 Subject: [PATCH 2/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index e4a0e272a..8d106e05c 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -32,6 +32,6 @@ jobs: with: java-version: 8 - name: Report Coverage to Coveralls - run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=GITHUB_TOKEN -DserviceName=github + run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4c975baedb25e2e56bef931bd2c5dba1ce61d9c6 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 16:20:54 -0500 Subject: [PATCH 3/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index 8d106e05c..e075d4dc6 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -16,7 +16,7 @@ name: Coveralls -on: [push, pull_request] +on: [pull_request] jobs: build: @@ -32,6 +32,7 @@ jobs: with: java-version: 8 - name: Report Coverage to Coveralls - run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github + run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.number }} From 83047962be0022837330f7d6e570a9b352dbd3eb Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 16:33:40 -0500 Subject: [PATCH 4/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index e075d4dc6..eb56f3335 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -16,7 +16,7 @@ name: Coveralls -on: [pull_request] +on: [push, pull_request] jobs: build: @@ -31,8 +31,14 @@ jobs: uses: actions/setup-java@v1 with: java-version: 8 - - name: Report Coverage to Coveralls + - name: Report Coverage to Coveralls for Pull Requests + if: ${{ github.event.name == 'pull_request' }} run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.number }} + - name: Report Coverage to Coveralls for General Push + if: ${{ github.event.name == 'push' }} + run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4c1b802879282da319bc71431b3d2d5f059b4b78 Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 16:35:46 -0500 Subject: [PATCH 5/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index eb56f3335..172aeae23 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -32,13 +32,13 @@ jobs: with: java-version: 8 - name: Report Coverage to Coveralls for Pull Requests - if: ${{ github.event.name == 'pull_request' }} + if: github.event.name == 'pull_request' run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.number }} - name: Report Coverage to Coveralls for General Push - if: ${{ github.event.name == 'push' }} + if: github.event.name == 'push' run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 96bf6163b527c6601d33c0722b2a6594387bb5ce Mon Sep 17 00:00:00 2001 From: Jeff Butler Date: Thu, 3 Dec 2020 16:37:14 -0500 Subject: [PATCH 6/6] Try to Get Coveralls Working with Pull Requests --- .github/workflows/coveralls.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yaml b/.github/workflows/coveralls.yaml index 172aeae23..366a6d3fc 100644 --- a/.github/workflows/coveralls.yaml +++ b/.github/workflows/coveralls.yaml @@ -32,13 +32,13 @@ jobs: with: java-version: 8 - name: Report Coverage to Coveralls for Pull Requests - if: github.event.name == 'pull_request' + if: github.event_name == 'pull_request' run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.number }} - name: Report Coverage to Coveralls for General Push - if: github.event.name == 'push' + if: github.event_name == 'push' run: ./mvnw test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}