#63 CI build should fail if formatting is incorrect
This commit is contained in:
parent
d7b1f3d86d
commit
e5d074651f
2
.github/workflows/maven.yml
vendored
2
.github/workflows/maven.yml
vendored
@ -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
20
pom.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user