This is an automated email from the ASF dual-hosted git repository. alien11689 pushed a commit to branch run-pmd in repository https://gitbox.apache.org/repos/asf/aries.git
commit ae32505609bf6fea1bc25dd7102a969ce968ed92 Author: Dominik Przybysz <[email protected]> AuthorDate: Tue Feb 18 20:22:18 2025 +0100 [MAINTENANCE] Run PMD in github actions --- .github/workflows/pmd.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++++ parent/pom.xml | 3 +++ 2 files changed, 53 insertions(+) diff --git a/.github/workflows/pmd.yml b/.github/workflows/pmd.yml new file mode 100644 index 000000000..6a96a611d --- /dev/null +++ b/.github/workflows/pmd.yml @@ -0,0 +1,50 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: PMD + +on: + pull_request: + branches: + - 'trunk' + push: + branches: + - 'trunk' + +env: + LC_ALL: en_US.UTF-8 + +jobs: + PMD: + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + java: [ 8 ] + os: [ ubuntu-latest ] + name: PMD + runs-on: ubuntu-latest + steps: + - name: Git Checkout + uses: actions/checkout@v4 + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 8 + - name: Run PMD + shell: bash + run: mvn -U -e -B -ntp clean compile test-compile -DskipTests pmd:pmd + - name: Publish PMD results + uses: jwgmeligmeyling/pmd-github-action@master + with: + path: '**/pmd.xml' diff --git a/parent/pom.xml b/parent/pom.xml index 8c3a5fe6f..0a9ed5c12 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -710,6 +710,9 @@ <artifactId>maven-pmd-plugin</artifactId> <version>${maven-pmd-plugin.version}</version> <configuration> + <failOnViolation>false</failOnViolation> + <includeTests>true</includeTests> + <skipEmptyReport>false</skipEmptyReport> <targetJdk>${java.source.version}</targetJdk> </configuration> </plugin>
