Skip to content

Commit 8f2315a

Browse files
committed
GH Actions: add a basic spellcheck CI check
Follow up on PR 2472 - safeguarding that no new typos get introduced. Ref: https://github.com/crate-ci/typos
1 parent c84a086 commit 8f2315a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/basic-qa.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,15 @@ jobs:
254254

255255
- name: Run PHPStan
256256
run: phpstan analyse
257+
258+
typos-check:
259+
name: "Find typos"
260+
261+
runs-on: "ubuntu-latest"
262+
263+
steps:
264+
- name: "Checkout"
265+
uses: "actions/checkout@v4"
266+
267+
- name: "Search for misspellings"
268+
uses: "crate-ci/typos@v1"

_typos.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[files]
2+
extend-exclude = [
3+
".git/",
4+
"WordPress/Tests/*.inc",
5+
"WordPress/Tests/*.css",
6+
"WordPress/Tests/*.js",
7+
]
8+
ignore-hidden = true
9+
10+
[default]
11+
locale = "en-us"
12+
check-filename = true
13+
unicode = false
14+
15+
[default.extend-words]

0 commit comments

Comments
 (0)