Merge branch 'master' into label-payload

This commit is contained in:
Liam Newman
2021-04-12 09:42:11 -07:00
committed by GitHub
3 changed files with 18 additions and 0 deletions

3
.github/codecov.yml vendored Normal file
View File

@@ -0,0 +1,3 @@
codecov:
ignore:
- "org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.java"

View File

@@ -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'

12
pom.xml
View File

@@ -110,6 +110,17 @@
</goals>
<configuration>
<propertyName>jacoco.surefire.argLine</propertyName>
<excludes>
<!-- Code implemented externally -->
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory.*</exclude>
<exclude>org/kohsuke/github/extras/okhtp3/ObsoleteUrlFactory$*.*</exclude>
<!-- Sample only -->
<exclude>org/kohsuke/github/example/**</exclude>
<!-- Deprecated -->
<exclude>org/kohsuke/github/extras/OkHttp3Connector.*</exclude>
<exclude>org/kohsuke/github/EnforcementLevel.*</exclude>
<exclude>org/kohsuke/github/GHPerson$1.*</exclude>
</excludes>
</configuration>
</execution>
<!-- attached to Maven test phase -->
@@ -163,6 +174,7 @@
<exclude>org.kohsuke.github.extras.OkHttp3Connector</exclude>
<exclude>org.kohsuke.github.EnforcementLevel</exclude>
<exclude>org.kohsuke.github.GHPerson.1</exclude>
<!-- TODO: Some coverage, but more needed -->
<exclude>org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment</exclude>
<exclude>org.kohsuke.github.GHIssue.PullRequest</exclude>