-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (28 loc) · 1002 Bytes
/
spell-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Spell Check
on: [push]
jobs:
check-unix:
runs-on: ubuntu-latest
name: Check Spelling
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install codespell
run: |
pip install codespell
- name: Run codespell
run: |
codespell src/ *.md -L berkley,currenty,lightening,pard,ment,ue,oder,fallow,headerr,curren,fo
rc=$?
if [ $rc != 0 ]; then
cat <<EOF
=================================== ERROR ===================================
Spell check failed, please correct the spelling mistakes at the locations
listed above. If any of the reported mistakes are false positives, please add
the lines provoking them to misc/suppressions/codespell-lines file or, if
there are many occurrences of the same word, add this word to codespell-words
file in the same directory.
EOF
>& 2
exit $rc
fi