From d4e8ccb070133c425e14b9078c744f8ee613dfee Mon Sep 17 00:00:00 2001 From: loong10k <20489781+loong10k@users.noreply.github.com> Date: Wed, 4 Nov 2026 08:02:09 +0800 Subject: [PATCH] fix: restore main tests and JaCoCo coverage collection --- .github/workflows/ci.yml | 6 ++++++ pom.xml | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a7f6ed..c92a6d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,12 @@ jobs: - name: Build and verify with JaCoCo coverage gate run: mvn -B --no-transfer-progress clean verify + - name: Require fresh test and coverage reports + run: | + test -s target/jacoco.exec + test -s target/site/jacoco/jacoco.xml + test -n "$(find target/surefire-reports -name 'TEST-*.xml' -print -quit)" + - name: Upload JaCoCo coverage report if: always() uses: actions/upload-artifact@v7 diff --git a/pom.xml b/pom.xml index e5e6a60..7167a19 100644 --- a/pom.xml +++ b/pom.xml @@ -48,6 +48,8 @@ UTF-8 UTF-8 + + 4.4 2.22.0 @@ -56,6 +58,8 @@ 2.0.52 2.17.2 6.1.0 + 5.18.0 + 3.7.5 1.18.46 6.1.0 2.0.18 @@ -327,6 +331,29 @@ lombok provided + + org.junit.jupiter + junit-jupiter + ${junit-jupiter.version} + test + + + org.springframework + spring-test + test + + + org.mockito + mockito-core + ${mockito.version} + test + + + io.projectreactor + reactor-test + ${reactor-test.version} + test + @@ -482,14 +509,18 @@ maven-surefire-plugin ${maven-surefire-plugin.version} + true false false - -Xmx1024m -Dfile.encoding=UTF-8 + @{argLine} -Xmx1024m -Dfile.encoding=UTF-8 ${basedir}/target/test-classes + **/Test*.java + **/*Test.java **/*Tests.java + **/*TestCase.java **/TestBean.java