Browse Source

Add GH Action

pull/14374/head
Sean Killeen 3 years ago
parent
commit
402ef10aa9
  1. 29
      .github/workflows/spellcheck.yml

29
.github/workflows/spellcheck.yml

@ -0,0 +1,29 @@
name: Documentation Checks
on:
push:
branches:
- dev
paths:
# This ensures the check will only be run when something changes in the docs content
- "docs/en/**/*" # or whatever the path to the markdown / docs files happens to be
pull_request:
branches:
- dev
paths:
- "docs/en/**/*"
jobs:
spellcheck:
name: "Docs: Spellcheck (En)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the code
- uses: actions/setup-node@v1
name: Setup node
with:
node-version: "16"
- run: npm install -g cspell
name: Install cSpell
- run: cspell --config ./cSpell.json "docs/en/**/*.md" --no-progress # Update for path to the markdown files
name: Run cSpell
Loading…
Cancel
Save