Skip to content

Commit cad7e0c

Browse files
committed
Cache CheckStyle
1 parent 4e0154c commit cad7e0c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/check-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ jobs:
9999
java-version: ${{ matrix.java }}
100100
cache: 'maven'
101101

102+
- name: CheckStyle Cache
103+
uses: actions/cache@v4
104+
with:
105+
path: '**/target/checkstyle-cachefile'
106+
key: ${{ runner.os }}-checkstyle-${{ hashFiles('**/pom.xml') }}
107+
restore-keys: |
108+
${{ runner.os }}-checkstyle-
109+
102110
- name: Run Checkstyle
103111
run: ./mvnw -B checkstyle:check -P checkstyle -T2C
104112

@@ -122,7 +130,7 @@ jobs:
122130
java-version: ${{ matrix.java }}
123131
cache: 'maven'
124132

125-
- name: PMD Analysis Cache
133+
- name: PMD Cache
126134
uses: actions/cache@v4
127135
with:
128136
path: '**/target/pmd/pmd.cache'

0 commit comments

Comments
 (0)