From 11462559196cc784cdcc6dc60d2069eb175262e7 Mon Sep 17 00:00:00 2001 From: loong10k <20489781+loong10k@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:30:23 +0800 Subject: [PATCH] fix: collect coverage in Shiro and pinned JWT tests --- .github/workflows/main-ci.yml | 9 ++++++++- pom.xml | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index f8b31f24..b23e0b36 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -20,12 +20,18 @@ jobs: uses: actions/checkout@v7 with: repository: easy-4-java/jwt-issuer - ref: fe29ffd8471eff70d2117b73e4cb2459e5ec4a2f + ref: 6b1a4de65a12a155e98e957ea82e446ef6420b36 path: .ci-dependencies/jwt-issuer - name: Verify and install JWT issuer run: mvn -B -ntp -s .github/maven-central-settings.xml -Dmaven.repo.local="${RUNNER_TEMP}/verified-m2" -f .ci-dependencies/jwt-issuer/pom.xml clean install - name: Verify Shiro extension run: mvn -B -ntp -s .github/maven-central-settings.xml -Dmaven.repo.local="${RUNNER_TEMP}/verified-m2" clean verify + - name: Require coverage for modules with existing tests + run: | + test -s .ci-dependencies/jwt-issuer/jwt-issuer-with-jjwt/target/jacoco.exec + test -s .ci-dependencies/jwt-issuer/jwt-issuer-with-jjwt/target/site/jacoco/jacoco.xml + test -s shiro-extension-core/target/jacoco.exec + test -s shiro-extension-core/target/site/jacoco/jacoco.xml - uses: actions/upload-artifact@v7 if: always() with: @@ -34,3 +40,4 @@ jobs: **/target/surefire-reports/** **/target/site/jacoco/** .ci-dependencies/**/target/surefire-reports/** + .ci-dependencies/**/target/site/jacoco/** diff --git a/pom.xml b/pom.xml index 30449593..a9162619 100644 --- a/pom.xml +++ b/pom.xml @@ -191,7 +191,7 @@ false false once - -Xmx1024m + @{jacocoArgLine} -Xmx1024m -Dfile.encoding=UTF-8 ${basedir}/target/test-classes @@ -272,6 +272,7 @@ prepare-agent + jacocoArgLine prepare-agent @@ -483,6 +484,7 @@ + 2.0.x.20260630-SNAPSHOT UTF-8 2.9.3