GitHub actions: show what exactly is not well formatted

This commit is contained in:
Alexander A. Klimov 2021-05-25 11:07:26 +02:00
parent b2b3f2a998
commit 0c160d2b94

View file

@ -58,8 +58,8 @@ jobs:
with:
go-version: 1.16.x
- name: Run gofmt -s -l .
- name: Run gofmt -s -d .
run: |
fmtvar="$(gofmt -s -l .)"
fmtvar="$(gofmt -s -d .)"
echo "$fmtvar"
test -z "$fmtvar"