#63 CI build should fail if formatting is incorrect

This commit is contained in:
Filip Hrisafov 2024-01-04 21:23:12 +01:00 committed by Gunnar Morling
parent d7b1f3d86d
commit e5d074651f
2 changed files with 21 additions and 1 deletions

View File

@ -46,4 +46,4 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: 'Build project'
run: mvn -B clean verify
run: mvn -B clean verify -Pci

20
pom.xml
View File

@ -164,6 +164,26 @@
</build>
<profiles>
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<id>validate-format</id>
<goals>
<goal>validate</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>qa</id>
<activation>