Skip to content

Commit 0d49ddb

Browse files
metacosmcsviri
andcommitted
feat: run spotless on compile (#2330)
Signed-off-by: Chris Laprun <claprun@redhat.com> Co-authored-by: Attila Mészáros <csviri@gmail.com> Signed-off-by: Attila Mészáros <csviri@gmail.com>
1 parent 0dcd000 commit 0d49ddb

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/e2e-test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
sample_operators_tests:
2020
strategy:
2121
matrix:
22-
sample_dir:
22+
sample:
2323
- "sample-operators/mysql-schema"
2424
- "sample-operators/tomcat-operator"
2525
- "sample-operators/webpage"
@@ -48,12 +48,10 @@ jobs:
4848
run: mvn install -DskipTests
4949

5050
- name: Run integration tests in local mode
51-
working-directory: ${{ matrix.sample_dir }}
5251
run: |
53-
mvn test -P end-to-end-tests
52+
mvn test -P end-to-end-tests -pl ${{ matrix.sample }}
5453
5554
- name: Run E2E tests as a deployment
56-
working-directory: ${{ matrix.sample_dir }}
5755
run: |
5856
eval $(minikube -p minikube docker-env)
59-
mvn jib:dockerBuild test -P end-to-end-tests -Dtest.deployment=remote
57+
mvn jib:dockerBuild test -P end-to-end-tests -Dtest.deployment=remote -pl ${{ matrix.sample }}

pom.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@
303303
<pom>
304304
<includes>
305305
<include>pom.xml</include>
306-
<include>./**/pom.xml</include>
306+
<include>./**/pom.xml</include>
307307
</includes>
308-
<sortPom></sortPom>
308+
<sortPom>
309+
<expandEmptyElements>false</expandEmptyElements>
310+
</sortPom>
309311
</pom>
310312
<java>
311313
<eclipse>
@@ -314,9 +316,17 @@
314316
<importOrder>
315317
<file>contributing/eclipse.importorder</file>
316318
</importOrder>
317-
<removeUnusedImports></removeUnusedImports>
319+
<removeUnusedImports/>
318320
</java>
319321
</configuration>
322+
<executions>
323+
<execution>
324+
<goals>
325+
<goal>apply</goal>
326+
</goals>
327+
<phase>compile</phase>
328+
</execution>
329+
</executions>
320330
</plugin>
321331
<plugin>
322332
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)