Skip to content

Commit 83be451

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 1553efa commit 83be451

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
@@ -313,9 +313,11 @@
313313
<pom>
314314
<includes>
315315
<include>pom.xml</include>
316-
<inclide>./**/pom.xml</inclide>
316+
<include>./**/pom.xml</include>
317317
</includes>
318-
<sortPom></sortPom>
318+
<sortPom>
319+
<expandEmptyElements>false</expandEmptyElements>
320+
</sortPom>
319321
</pom>
320322
<java>
321323
<eclipse>
@@ -324,9 +326,17 @@
324326
<importOrder>
325327
<file>contributing/eclipse.importorder</file>
326328
</importOrder>
327-
<removeUnusedImports></removeUnusedImports>
329+
<removeUnusedImports/>
328330
</java>
329331
</configuration>
332+
<executions>
333+
<execution>
334+
<goals>
335+
<goal>apply</goal>
336+
</goals>
337+
<phase>compile</phase>
338+
</execution>
339+
</executions>
330340
</plugin>
331341
<plugin>
332342
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)