Skip to content

Commit b4b1a0e

Browse files
committed
chore(ci): add automatic formatting of code on push
1 parent ee18088 commit b4b1a0e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ jobs:
2121
uses: actions/setup-java@v1
2222
with:
2323
java-version: ${{ matrix.java }}
24-
- name: Check code format
25-
run: mvn fmt:check --file pom.xml
24+
- name: Format code
25+
uses: axel-op/googlejavaformat-action@v3
26+
with:
27+
commitMessage: "chore(format): re-format code"
28+
args: "--replace"
2629
- name: Run unit tests
2730
run: mvn -B test -P no-integration-tests --file pom.xml
2831
- name: Set up Minikube

0 commit comments

Comments
 (0)