Skip to content

Commit cef2a89

Browse files
committed
chore: ensure PMD collects all violations before failing
1 parent 1bce785 commit cef2a89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/verify.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
path: /home/runner/.m2/repository
4444
key: ${{ runner.os }}-maven-0-${{ hashFiles('**/pom.xml') }}
4545
- name: Build with Maven within a virtual X Server Environment
46-
run: xvfb-run mvn clean verify checkstyle:check pmd:pmd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
46+
# Run pmd:pmd and pmd:cpd first to generate reports for all modules, then run pmd:check and pmd:cpd-check
47+
# This ensures all violations are collected and reported before the build fails
48+
run: xvfb-run mvn clean verify checkstyle:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check spotbugs:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end
4749
- name: Archive Tycho Surefire Plugin
4850
if: ${{ failure() }}
4951
uses: actions/upload-artifact@v5

0 commit comments

Comments
 (0)