Skip to content

Commit 2581f76

Browse files
authored
chore: Fail CI build if there are wrongly formatted files (re. #168)
Inspired e.g. by https://github.com/enola-dev/enola/blob/46e6e203d9f8b17406c5b0f5a156ba37c880ab45/tools/git/test.bash#L20.
1 parent 5a7ab20 commit 2581f76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ jobs:
3939
4040
- name: Compile and test (all) modules with Java ${{ matrix.java-version }}
4141
run: ./mvnw clean test
42+
43+
- name: Detected wrongly formatted files
44+
run: git status && git diff --exit-code

0 commit comments

Comments
 (0)