Skip to content

Commit c9e998e

Browse files
authored
ci: print the correct sort order of the dictionary on failure (#6905)
1 parent 512e9de commit c9e998e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,13 @@ jobs:
11151115
# using LC_ALL to en_US.UTF8 to be consistent in different
11161116
# environments.
11171117
1118-
sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc
1118+
(
1119+
sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc
1120+
) || {
1121+
echo "Dictionary is not in sorted order. Correct order is:"
1122+
LC_ALL=en_US.UTF8 sort -u <(sed '1d; $d' spellcheck.dic)
1123+
false
1124+
}
11191125
- name: Run cargo-spellcheck
11201126
run: cargo spellcheck --code 1
11211127

0 commit comments

Comments
 (0)