From c9e998e4b3cbd3326b4ef52e38ae22561d6e1f29 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Thu, 17 Oct 2024 04:45:38 -0400 Subject: [PATCH] ci: print the correct sort order of the dictionary on failure (#6905) --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a9d579e3..30cfa9e7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1115,7 +1115,13 @@ jobs: # using LC_ALL to en_US.UTF8 to be consistent in different # environments. - sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc + ( + sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc + ) || { + echo "Dictionary is not in sorted order. Correct order is:" + LC_ALL=en_US.UTF8 sort -u <(sed '1d; $d' spellcheck.dic) + false + } - name: Run cargo-spellcheck run: cargo spellcheck --code 1