[#1266] .forgejo: Make 'fumpt' job fail on changed files

`gofumpt` always returns an exit code of 0, even when it finds
misformatted files. To make `fumpt` action behave as expected
we need to check if `gofumpt` changed any files.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-09-13 15:44:23 +03:00
parent 89d0435b1d
commit 2be1aa781d

View file

@ -106,4 +106,6 @@ jobs:
run: make fumpt-install run: make fumpt-install
- name: Run gofumpt - name: Run gofumpt
run: make fumpt run: |
make fumpt
git diff --exit-code --quiet