Skip to content

Commit

Permalink
ci: print the correct sort order of the dictionary on failure (#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh authored Oct 17, 2024
1 parent 512e9de commit c9e998e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c9e998e

Please sign in to comment.