Skip to content

Commit 007c147

Browse files
committed
ci(pre-commit): show diff on failure
Mainly for shfmt, which writes its changes in place. shfmt has the `-d` option which would output the diff for us, but showing the diff on pre-commit level is preferable in CI in the first place. And the diff emitted by it has colors, unlike the shfmt one.
1 parent 9e0778b commit 007c147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Other pre-commit checks
6868
6969
set +e
70-
pre-commit run --color=always --all-files
70+
pre-commit run --color=always --all-files --show-diff-on-failure
7171
((rc+=$?))
7272
set -e
7373

0 commit comments

Comments
 (0)