Add Spellcheck GitHub Action

This is setup to display typos in a PR review UI and will warn (but not error) if any detected.
This commit is contained in:
Christian Oliff
2022-07-13 10:43:54 +09:00
parent 683afeca4a
commit f0f8369df7
2 changed files with 43 additions and 0 deletions

23
.cspell.json Normal file
View File

@@ -0,0 +1,23 @@
{
"version": "0.2",
"words": [
"devdeps",
"FOUC",
"lighttpd",
"robotstxt",
"vuejs"
],
"language": "en,en-GB,en-US",
"allowCompoundWords": true,
"files": [
"**/*.md"
],
"ignoreRegExpList": [
"\\_\\w+",
"\\#\\w+"
],
"ignorePaths": [
".cspell.json"
],
"useGitignore": true
}

20
.github/workflows/spellcheck.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: 'Check spelling'
on: # rebuild any PRs and main branch changes
push:
branches-ignore:
- "dependabot/**"
pull_request:
permissions:
contents: read
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
inline: warning
strict: false
incremental_files_only: true