32
32
grep -E "\.sh$" |
33
33
xargs -r shellcheck
34
34
35
- # Unsure, if I really want to do cspell (for .md and .pot files)... The .pot
36
- # file will never be touched by contributors directly. So getting a false flag
37
- # there won't be an issue. That leaves .md files to be spell checked by
38
- # potentional contributors. It kinda makes sense. Problem could be reliability.
39
35
spellcheck :
40
36
name : Run spell check
41
37
runs-on : ubuntu-latest
@@ -46,32 +42,14 @@ jobs:
46
42
- uses : actions/setup-node@v3
47
43
with :
48
44
node-version : " *"
49
- - run : pip install codespell && npm install -g cspell
45
+ - run : pip install codespell
50
46
# The case sensitivity of codespeller for ignore-words seems to be buggy. See
51
47
# issue tracker. According to the help page it should be case sensitive but
52
48
# only 'allws' makes codespeller ignore 'allWs' in code files.
53
49
- name : Run codespell
54
50
run : >
55
51
git diff --name-only --diff-filter=ACMTUXB origin/${{ github.base_ref }} HEAD |
56
52
xargs -r codespell -q 3 --skip="*.po*,*.git/*" --ignore-words .github/ignore-words.txt
57
- - name : Configure custom dictionary for cspell based on the ignore list
58
- run : >
59
- echo '{
60
- "version": "0.2",
61
- "dictionaryDefinitions": [{
62
- "name": "dict",
63
- "path": ".github/ignore-words.txt",
64
- "addWords": true
65
- }],
66
- "dictionaries": ["dict"],
67
- }' >> cspell.json
68
- - name : Run cspell (*.md and *.pot)
69
- if : success() || failure()
70
- run : >
71
- git diff --name-only --diff-filter=ACMTUXB origin/${{ github.base_ref }} HEAD |
72
- grep -E "\.(md|pot)$" |
73
- npx cspell lint --color --exclude "CHANGELOG.md" --file-list stdin \
74
- --no-must-find-files --show-context --show-suggestions --unique
75
53
76
54
build :
77
55
name : Run build
0 commit comments