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: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,23 @@ jobs:
- name: Build and verify with JaCoCo coverage gate
run: mvn -B --no-transfer-progress clean verify

- name: Require coverage for existing JWT tests
run: |
test -s jwt-issuer-with-jjwt/target/jacoco.exec
test -s jwt-issuer-with-jjwt/target/site/jacoco/jacoco.xml

- name: Upload JaCoCo coverage report
if: always()
uses: actions/upload-artifact@v7
with:
name: jacoco-coverage
path: target/site/jacoco
path: "**/target/site/jacoco/**"
retention-days: 14

- name: Upload surefire reports
if: always()
uses: actions/upload-artifact@v7
with:
name: surefire-reports
path: target/surefire-reports
path: "**/target/surefire-reports/**"
retention-days: 14
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
<skip>false</skip>
<skipTests>false</skipTests>
<forkMode>once</forkMode>
<argLine>-Xmx1024m
<argLine>@{jacocoArgLine} -Xmx1024m
-Dfile.encoding=UTF-8</argLine>
<additionalClasspathElements>
<additionalClasspathElement>${basedir}/target/test-classes</additionalClasspathElement>
Expand Down Expand Up @@ -288,6 +288,7 @@
<executions>
<execution>
<id>prepare-agent</id>
<configuration><propertyName>jacocoArgLine</propertyName></configuration>
<goals>
<goal>prepare-agent</goal>
</goals>
Expand Down Expand Up @@ -502,6 +503,7 @@

<!-- 版本属性定义:Java 版本、依赖版本与 Maven 插件版本统一管理 -->
<properties>
<jacocoArgLine></jacocoArgLine>
<java.version>17</java.version>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Loading