From 92042e1b7139a0b37755bd8a09043f170f6c55c1 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 14:47:40 +0530
Subject: [PATCH 1/3] [Automated]Add Codecov configuration
---
codecov.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 codecov.yml
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..9571a5f
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,16 @@
+
+codecov:
+ require_ci_to_pass: yes
+ notify:
+ wait_for_ci: yes
+coverage:
+ status:
+ project:
+ default:
+ enabled: yes
+ threshold: null
+ target: auto
+ patch:
+ default:
+ target: 80%
+ threshold: 40%
From 7ffd8d81e8e74e36b35b3a1845bf5b18dfd9eda8 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 14:47:42 +0530
Subject: [PATCH 2/3] Update PR builder with Codecov steps
---
.github/workflows/pr-builder.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml
index 3ca871d..634b7c1 100644
--- a/.github/workflows/pr-builder.yml
+++ b/.github/workflows/pr-builder.yml
@@ -39,3 +39,11 @@ jobs:
- name: Build with Maven
run: mvn clean install -U -B
+ - name: Generate coverage report
+ run: mvn test jacoco:report
+
+ - name: Upload coverage reports to Codecov
+ uses: codecov/codecov-action@v4
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files : target/site/jacoco/jacoco.xml
From d3fd94b7b48505f14e35ccbdbbade67f2af36158 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 14:47:46 +0530
Subject: [PATCH 3/3] Update root pom.xml with JaCoCo configuration
---
pom.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3b8725e..1c692d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -280,6 +280,8 @@
-Xdoclint:none
+
+ 0.8.12
@@ -380,5 +382,7 @@
4.12
UTF-8
source-release
-
+
+ 0.8.12
+