-
Notifications
You must be signed in to change notification settings - Fork 25
39 lines (37 loc) · 1010 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
33
34
35
36
37
38
39
name: Spell Check
on:
pull_request:
paths:
- "**/*.md"
- "**/*.mdx"
- "**/*.txt"
- "**/*.yml"
- "**/*.yaml"
- "**/*.py"
- "**/*.js"
- "**/*.ts"
- "**/*.html"
- "**/*.rst"
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install codespell
run: pip install codespell
- name: Run Spell Check
run: |
codespell \
--ignore-words=.github/config/ignored-words.txt \
--skip="*.svg,*.png,*.jpg,*.woff,*.woff2,*.pdf,*.json,package-lock.json" \
--quiet-level=2 \
--check-filenames \
.
- name: Annotate spelling errors
if: failure()
run: echo "::error::Spelling errors detected. Please fix the typos or add to the ignore list if intentional."