Skip to content

Commit 619c138

Browse files
committed
add typos GH action + config
1 parent 6aab564 commit 619c138

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/typos.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Content typos tests
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Check spelling of markdown and JSON files in content directory
17+
uses: crate-ci/typos@master
18+
with:
19+
files: ./content/**/*.{md,json}

typos.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[default]
2+
extend-ignore-re = [
3+
# don't spellcheck the values of these JSON keys
4+
'"(name|videoId|url|instagram)": ".*"',
5+
6+
# false positives
7+
'Jason Sigal',
8+
'Thi\.ng',
9+
'Shure Lavalier',
10+
]

0 commit comments

Comments
 (0)