Skip to content

Commit 601f180

Browse files
authored
Merge branch 'master' into attach-check-runs
2 parents bf082f2 + 6453e58 commit 601f180

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
ignore:
3+
- "org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java"

.github/workflows/maven-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
- name: Maven Install with Code Coverage
8080
if: matrix.os != 'windows' && matrix.java == '8'
8181
run: mvn -B install -D enable-ci --file pom.xml
82+
- name: Codecov Report
83+
if: matrix.os != 'windows' && matrix.java == '8'
84+
uses: codecov/[email protected]
8285
# JDK 11+
8386
- name: Maven Install without Code Coverage
8487
if: matrix.os == 'windows' && matrix.java != '8'

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@
110110
</goals>
111111
<configuration>
112112
<propertyName>jacoco.surefire.argLine</propertyName>
113+
<excludes>
114+
<!-- Code implemented externally -->
115+
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
116+
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.*</exclude>
117+
<!-- Sample only -->
118+
<exclude>org/kohsuke/github/example/**</exclude>
119+
<!-- Deprecated -->
120+
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
121+
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
122+
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
123+
</excludes>
113124
</configuration>
114125
</execution>
115126
<!-- attached to Maven test phase -->
@@ -163,6 +174,7 @@
163174
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
164175
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
165176
<exclude>org.kohsuke.github.GHPerson.1</exclude>
177+
166178
<!-- TODO: Some coverage, but more needed -->
167179
<exclude>org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment</exclude>
168180
<exclude>org.kohsuke.github.GHIssue.PullRequest</exclude>

0 commit comments

Comments
 (0)