File tree Expand file tree Collapse file tree 2 files changed +46
-15
lines changed Expand file tree Collapse file tree 2 files changed +46
-15
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,28 @@ jobs:
14
14
runs-on : ${{ matrix.platform }}
15
15
16
16
steps :
17
- - uses : actions/checkout@v4
17
+ - uses : actions/checkout@v4
18
18
19
- - name : Setup Maven cache
20
- uses : actions/cache@v4
21
- with :
22
- path : ~/.m2/repository
23
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24
- restore-keys : |
25
- ${{ runner.os }}-maven-
19
+ - name : Setup Maven cache
20
+ uses : actions/cache@v4
21
+ with :
22
+ path : ~/.m2/repository
23
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-maven-
26
26
27
- - name : Set up JDK 11
28
- uses : actions/setup-java@v4
29
- with :
30
- java-version : ' 11'
31
- distribution : ' corretto'
27
+ - name : Set up JDK 11
28
+ uses : actions/setup-java@v4
29
+ with :
30
+ java-version : ' 11'
31
+ distribution : ' corretto'
32
32
33
- - name : Build with Maven
34
- run : mvn -e --no-transfer-progress clean install
33
+ - name : Build with Maven
34
+ run : mvn -e --no-transfer-progress clean install
35
+
36
+ - name : Check for changes
37
+ run : |
38
+ git diff --exit-code || (
39
+ echo "Code changes detected - run 'mvn clean verify' locally"
40
+ exit 1
41
+ )
Original file line number Diff line number Diff line change 102
102
</configuration >
103
103
</plugin >
104
104
105
+ <plugin >
106
+ <groupId >org.openrewrite.maven</groupId >
107
+ <artifactId >rewrite-maven-plugin</artifactId >
108
+ <version >6.11.0</version >
109
+ <configuration >
110
+ <activeRecipes >
111
+ <recipe >org.checkstyle.autofix.CheckstyleAutoFix</recipe >
112
+ </activeRecipes >
113
+ <recipeArtifactCoordinates >
114
+ <coordinate >org.checkstyle.autofix:checkstyle-openrewrite-recipes:1.0.0</coordinate >
115
+ </recipeArtifactCoordinates >
116
+ </configuration >
117
+ <executions >
118
+ <execution >
119
+ <id >checkstyle-autofix</id >
120
+ <phase >process-sources</phase >
121
+ <goals >
122
+ <goal >run</goal >
123
+ </goals >
124
+ </execution >
125
+ </executions >
126
+ </plugin >
127
+
105
128
<!-- Checkstyle plugin for code style regulation -->
129
+
106
130
<plugin >
107
131
<groupId >org.apache.maven.plugins</groupId >
108
132
<artifactId >maven-checkstyle-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments