Skip to content

Configure SonarCloud automatic CPD exclusions #60

Configure SonarCloud automatic CPD exclusions

Configure SonarCloud automatic CPD exclusions #60

Workflow file for this run

name: Quality Gates
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
permissions:
contents: read
jobs:
static-analysis:
name: Static analysis (no tests)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 21
cache: maven
- name: Run static quality plugins
run: mvn -B -DskipTests checkstyle:check pmd:check spotbugs:check
- name: Upload checkstyle report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: checkstyle-report
path: target/checkstyle-result.xml
if-no-files-found: ignore
- name: Upload pmd report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: pmd-report
path: target/pmd.xml
if-no-files-found: ignore
- name: Upload spotbugs report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: spotbugs-report
path: target/spotbugsXml.xml
if-no-files-found: ignore