Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ jobs:
- name: Update submodule
run: git submodule update --init
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
run: mvn -Pcoverage --batch-mode --update-snapshots verify
- name: Upload coverage
Comment thread
yhmo marked this conversation as resolved.
uses: codecov/codecov-action@v5
with:
files: ./sdk-core/target/site/jacoco/jacoco.xml,./sdk-bulkwriter/target/site/jacoco/jacoco.xml
name: ubuntu-jacoco-coverage
disable_safe_directory: true
verbose: true
39 changes: 39 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Configuration for Codecov
codecov:
require_ci_to_pass: no
notify:
require_ci_to_pass: no
wait_for_ci: false

coverage:
precision: 2
round: down
range: "70...100"

status:
project:
default:
target: 70%
threshold: 0%
patch:
default:
target: 80%
threshold: 0%
if_ci_failed: error

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false
branches:
- master

ignore:
- .github
- benchmark
- doc
- examples
- tests
- "**/*.md"
- "**/*.yml"
- "**/*.yaml"
39 changes: 39 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
<maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version>
<maven.flatten.plugin.version>1.6.0</maven.flatten.plugin.version>
<maven.deploy.plugin.version>3.1.3</maven.deploy.plugin.version>
<jacoco.maven.plugin.version>0.8.12</jacoco.maven.plugin.version>
<junit.platform.version>1.1.0</junit.platform.version>
<junit.jupiter.engine.version>5.10.1</junit.jupiter.engine.version>
<gson.version>2.13.1</gson.version>
Expand Down Expand Up @@ -226,6 +227,44 @@
</plugins>
</build>
</profile>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
<argLine>${jacocoArgLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<executions>
<execution>
<id>jacoco-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jacocoArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>jacoco-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down
Loading