Skip to content

Commit fd474ba

Browse files
committed
Enable PMD analysis cache
1 parent 3103506 commit fd474ba

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/check-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ jobs:
122122
java-version: ${{ matrix.java }}
123123
cache: 'maven'
124124

125+
- name: PMD Analysis Cache
126+
uses: actions/cache@v4
127+
with:
128+
path: '**/target/pmd/pmd.cache'
129+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
130+
restore-keys: |
131+
${{ runner.os }}-maven-
132+
125133
- name: Run PMD
126134
run: ./mvnw -B test pmd:aggregate-pmd-no-fork pmd:check -P pmd -DskipTests -T2C
127135

chartjs-java-model/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@
355355
<artifactId>maven-pmd-plugin</artifactId>
356356
<version>3.27.0</version>
357357
<configuration>
358+
<analysisCache>true</analysisCache>
358359
<includeTests>true</includeTests>
359360
<printFailingErrors>true</printFailingErrors>
360361
<rulesets>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<artifactId>maven-pmd-plugin</artifactId>
7373
<version>3.27.0</version>
7474
<configuration>
75+
<analysisCache>true</analysisCache>
7576
<includeTests>true</includeTests>
7677
<printFailingErrors>true</printFailingErrors>
7778
<rulesets>

0 commit comments

Comments
 (0)