From 19ee639c051e5dd3ef0344139f099806027e5df5 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 07:58:15 +0000 Subject: [PATCH] ci: Add PMD and CPD checks to Maven build workflow - Added `mvn pmd:check pmd:cpd-check` to `.github/workflows/maven.yml` - Added the "MoreUnit Build" badge to the `README.md` to reflect the CI status (which now includes PMD and CPD) Co-authored-by: RoiSoleil <3462260+RoiSoleil@users.noreply.github.com> --- .github/workflows/maven.yml | 3 +++ README.md | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5f01b026..2620c6ee 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -37,6 +37,9 @@ jobs: - name: Build and verify run: mvn -file org.moreunit.build/pom.xml clean install "-Dtarget.platform.classifier=eclipse-latest" --fail-at-end --batch-mode --strict-checksums --update-snapshots "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" + - name: Run PMD and CPD checks + run: mvn -file org.moreunit.build/pom.xml pmd:check pmd:cpd-check + - name: Publish Surefire Test Results for 🖨 if: ${{ always() }} uses: ScaCap/action-surefire-report@v1 diff --git a/README.md b/README.md index d7d9d171..b43ac7e1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![MoreUnit Build](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/maven.yml/badge.svg)](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/maven.yml) [![CodeQL](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/codeql-analysis.yml) [![codecov](https://codecov.io/gh/MoreUnit/MoreUnit-Eclipse/branch/master/graph/badge.svg)](https://codecov.io/gh/MoreUnit/MoreUnit-Eclipse)