From 8fac7d317e2f316e44fde159ae2824bdee5bf3b6 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 12 Apr 2021 08:34:18 -0700 Subject: [PATCH 1/5] Use codecov.io to report coverage --- .github/workflows/maven-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 2fa86ff42..db428b3e2 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -79,6 +79,9 @@ jobs: - name: Maven Install with Code Coverage if: matrix.os != 'windows' && matrix.java == '8' run: mvn -B install -D enable-ci --file pom.xml + - name: Codecov Report + if: matrix.os != 'windows' && matrix.java == '8' + uses: codecov/codecov-action@v1.3.2 # JDK 11+ - name: Maven Install without Code Coverage if: matrix.os == 'windows' && matrix.java != '8' From 927843ea8373a97fd4b25ac3275e38f904808875 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 12 Apr 2021 08:54:38 -0700 Subject: [PATCH 2/5] Exclude some files from coverage entirely --- pom.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index bffc02d9c..bba61a306 100644 --- a/pom.xml +++ b/pom.xml @@ -110,6 +110,16 @@ jacoco.surefire.argLine + + + org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java + + org.kohsuke.github.example.* + + org.kohsuke.github.extras.OkHttp3Connector + org.kohsuke.github.EnforcementLevel + org.kohsuke.github.GHPerson.1 + @@ -151,18 +161,6 @@ - - org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.** - org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory - - - org.kohsuke.github.example.* - - - - org.kohsuke.github.extras.OkHttp3Connector - org.kohsuke.github.EnforcementLevel - org.kohsuke.github.GHPerson.1 org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment org.kohsuke.github.GHIssue.PullRequest From 672febd88bd36da6470b8f5ede8e2ba4809170ce Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 12 Apr 2021 09:07:48 -0700 Subject: [PATCH 3/5] Update pom.xml --- pom.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index bba61a306..9756ebd34 100644 --- a/pom.xml +++ b/pom.xml @@ -112,13 +112,14 @@ jacoco.surefire.argLine - org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java + org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.* + org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.* - org.kohsuke.github.example.* + org/kohsuke/github/example/** - org.kohsuke.github.extras.OkHttp3Connector - org.kohsuke.github.EnforcementLevel - org.kohsuke.github.GHPerson.1 + org/kohsuke/github/extras/OkHttp3Connector.* + org/kohsuke/github/EnforcementLevel.* + org/kohsuke/github/GHPerson$1.* From c5b45523d689b966bfdab56b1db4f0fa68cef5d4 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 12 Apr 2021 09:28:04 -0700 Subject: [PATCH 4/5] Update pom.xml --- pom.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pom.xml b/pom.xml index 9756ebd34..f5f9f061f 100644 --- a/pom.xml +++ b/pom.xml @@ -162,6 +162,19 @@ + + org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.** + org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory + + + org.kohsuke.github.example.* + + + + org.kohsuke.github.extras.OkHttp3Connector + org.kohsuke.github.EnforcementLevel + org.kohsuke.github.GHPerson.1 + org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment org.kohsuke.github.GHIssue.PullRequest From 3a1ed5a5b7ce593252ef66931e20d966d29a128c Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 12 Apr 2021 09:28:21 -0700 Subject: [PATCH 5/5] Create codecov.yml --- .github/codecov.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 000000000..b05dc0869 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,3 @@ +codecov: + ignore: + - "org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java"