From 0fb2454c6f0b8ccaceec48418c135a43a6144b45 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:10:21 +0530 Subject: [PATCH 1/5] [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 49c3584515bdb39861f4f51af89b33a1da4897da Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:10:22 +0530 Subject: [PATCH 2/5] 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 919ec49..c561ae2 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 be028561cf0099aec3ca23ecfb080c9a3132f37b Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:10:27 +0530 Subject: [PATCH 3/5] Update root pom.xml with JaCoCo configuration --- pom.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pom.xml b/pom.xml index 359cc6c..a48e47e 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,11 @@ xercesImpl ${xerces.version} + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + @@ -87,6 +92,25 @@ false + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + @@ -124,5 +148,7 @@ 0.1.24 1.4 2.11.0 + + 0.8.6 From 082145423ed0f8f9db9196f6da81647bc52625a5 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:10:55 +0530 Subject: [PATCH 4/5] Update component pom.xml with JaCoCo configuration --- io.asgardeo.tomcat.oidc.agent/pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/io.asgardeo.tomcat.oidc.agent/pom.xml b/io.asgardeo.tomcat.oidc.agent/pom.xml index da8da91..46c15d5 100644 --- a/io.asgardeo.tomcat.oidc.agent/pom.xml +++ b/io.asgardeo.tomcat.oidc.agent/pom.xml @@ -40,6 +40,11 @@ xerces xercesImpl + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + @@ -59,6 +64,25 @@ org.apache.maven.plugins maven-compiler-plugin + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + From bf43f90b9d8b648816fa4177fdf82960842c6bc5 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:10:56 +0530 Subject: [PATCH 5/5] Update component pom.xml with JaCoCo configuration --- io.asgardeo.tomcat.oidc.sample/pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/io.asgardeo.tomcat.oidc.sample/pom.xml b/io.asgardeo.tomcat.oidc.sample/pom.xml index 3fac5a0..1888309 100644 --- a/io.asgardeo.tomcat.oidc.sample/pom.xml +++ b/io.asgardeo.tomcat.oidc.sample/pom.xml @@ -39,6 +39,11 @@ io.asgardeo.tomcat.oidc.agent io.asgardeo.tomcat.oidc.agent + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + @@ -80,6 +85,25 @@ maven-clean-plugin 2.1 + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + +