Skip to content

Commit

Permalink
Merge pull request #597 from Azquelt/validate-formatting
Browse files Browse the repository at this point in the history
Validate formatting in CI build
  • Loading branch information
MikeEdgar authored Jan 24, 2024
2 parents cb664fe + 0cb221a commit b07b68e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
cache: 'maven'

- name: build with maven
run: mvn -B --no-transfer-progress verify javadoc:javadoc --file pom.xml
run: mvn -B --no-transfer-progress verify javadoc:javadoc --file pom.xml -Pvalidate-formatting
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,25 @@
<module>spi</module>
</modules>

<profiles>
<profile>
<id>validate-formatting</id>
<build>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit b07b68e

Please sign in to comment.