Skip to content

Commit 0daf53a

Browse files
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>
1 parent 9cad425 commit 0daf53a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
- name: Build and verify
3838
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"
3939

40+
- name: Run PMD and CPD checks
41+
run: mvn -file org.moreunit.build/pom.xml pmd:check pmd:cpd-check
42+
4043
- name: Publish Surefire Test Results for 🖨
4144
if: ${{ always() }}
4245
uses: ScaCap/action-surefire-report@v1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![MoreUnit Build](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/maven.yml/badge.svg)](https://github.com/MoreUnit/MoreUnit-Eclipse/actions/workflows/maven.yml)
12
[![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)
23
[![codecov](https://codecov.io/gh/MoreUnit/MoreUnit-Eclipse/branch/master/graph/badge.svg)](https://codecov.io/gh/MoreUnit/MoreUnit-Eclipse)
34

0 commit comments

Comments
 (0)