2022-10-07 20:50:20 -04:00
|
|
|
name: Documentation Checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
paths:
|
2022-10-15 00:50:57 -03:00
|
|
|
- 'packages/mermaid/docs/**/*'
|
2022-10-07 20:50:20 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
paths:
|
2022-10-15 00:50:57 -03:00
|
|
|
- 'packages/mermaid/docs/**/*'
|
2022-10-07 20:50:20 -04:00
|
|
|
jobs:
|
|
|
|
spellcheck:
|
2022-10-07 21:42:39 -04:00
|
|
|
name: 'Docs: Spellcheck'
|
2022-10-07 20:50:20 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-11 20:56:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-07 20:50:20 -04:00
|
|
|
name: Check out the code
|
2022-10-12 22:52:41 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2022-10-07 20:50:20 -04:00
|
|
|
name: Setup node
|
|
|
|
with:
|
2022-10-07 21:42:39 -04:00
|
|
|
node-version: '16'
|
2022-10-07 20:50:20 -04:00
|
|
|
- run: npm install -g cspell
|
|
|
|
name: Install cSpell
|
2022-10-15 00:50:57 -03:00
|
|
|
- run: cspell --config ./cSpell.json "packages/mermaid/docs/**/*.md" --no-progress
|
2022-10-07 21:58:52 -04:00
|
|
|
name: Run cSpell
|