Skip to content

Commit

Permalink
add typos GH action + config
Browse files Browse the repository at this point in the history
  • Loading branch information
fturmel committed Nov 16, 2024
1 parent 6aab564 commit 619c138
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Content typos tests

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Check spelling of markdown and JSON files in content directory
uses: crate-ci/typos@master
with:
files: ./content/**/*.{md,json}
10 changes: 10 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[default]
extend-ignore-re = [
# don't spellcheck the values of these JSON keys
'"(name|videoId|url|instagram)": ".*"',

# false positives
'Jason Sigal',
'Thi\.ng',
'Shure Lavalier',
]

0 comments on commit 619c138

Please sign in to comment.