mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-08 22:28:10 -05:00
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:
23
.cspell.json
Normal file
23
.cspell.json
Normal 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
20
.github/workflows/spellcheck.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user