diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index a06dd8678..0df1256cd 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -12,16 +12,22 @@ jobs: with: distribution: 'temurin' java-version: '21' - - name: PMD - uses: pmd/pmd-github-action@v2.0.0 - id: pmd + - name: Set up Workspace Environment Variable + run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV + - name: PMD Check + run: mvn pmd:pmd pmd:cpd pmd:check pmd:cpd-check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end + checkstyle: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-java@v5 with: - version: '7.21.0' - rulesets: 'ddk-configuration/pmd/ruleset.xml' - analyzeModifiedFilesOnly: false - - name: Fail build if there are violations - if: steps.pmd.outputs.violations != 0 - run: exit 1 + distribution: 'temurin' + java-version: '21' + - name: Set up Workspace Environment Variable + run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV + - name: Checkstyle Check + run: mvn checkstyle:checkstyle checkstyle:check -f ./ddk-parent/pom.xml --batch-mode --fail-at-end maven-verify: runs-on: ubuntu-24.04 steps: @@ -36,10 +42,10 @@ jobs: distribution: 'temurin' java-version: '21' - name: Set up Workspace Enviroment Variable - run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV + run: echo "WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV - name: Cache Maven dependencies uses: actions/cache@v5 - with: + with: path: /home/runner/.m2/repository key: ${{ runner.os }}-maven-0-${{ hashFiles('**/pom.xml') }} - name: Build with Maven within a virtual X Server Environment