aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-05-29 02:00:25 +0200
committerGitHub <noreply@github.com>2022-05-28 17:00:25 -0700
commitf31a10204c573188e8fb76a10d22f9d4bae907f1 (patch)
tree556107ff58af1ab1120ea28fa04c8454ac769707
parent772ae3e6566a0c9207cfc60e5f02af9cd32685da (diff)
downloadrneovim-f31a10204c573188e8fb76a10d22f9d4bae907f1.tar.gz
rneovim-f31a10204c573188e8fb76a10d22f9d4bae907f1.tar.bz2
rneovim-f31a10204c573188e8fb76a10d22f9d4bae907f1.zip
ci(uncrustify): show diff on failure #18780
This will make it possible to see what needs to be fixed without having uncrustify installed locally.
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4657053167..16464426ee 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -120,7 +120,8 @@ jobs:
- if: "!cancelled()"
name: uncrustify
run: |
- ${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --check $(find ./src/nvim -name "*.[ch]") >/dev/null
+ ${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --replace --no-backup $(find ./src/nvim -name "*.[ch]")
+ git diff --color --exit-code
- if: "!cancelled()"
name: lualint