| 1 |
name: Docs PR Spellcheck |
| 2 |
on: |
| 3 |
pull_request: |
| 4 |
branches: |
| 5 |
- 'dev' |
| 6 |
files: |
| 7 |
- '**Doxyfile' |
| 8 |
- '**docpages/**' |
| 9 |
- '**/*.h' |
| 10 |
- '**/documentation-check.yml' |
| 11 |
push: |
| 12 |
files: |
| 13 |
- '**/documentation-check.yml' |
| 14 |
|
| 15 |
permissions: |
| 16 |
contents: read |
| 17 |
|
| 18 |
jobs: |
| 19 |
docs: |
| 20 |
name: Check Documentation Spelling |
| 21 |
runs-on: ubuntu-24.04 |
| 22 |
|
| 23 |
steps: |
| 24 |
- name: Harden Runner |
| 25 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 26 |
with: |
| 27 |
egress-policy: audit |
| 28 |
|
| 29 |
- name: Checkout D++ |
| 30 |
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| 31 |
|
| 32 |
- name: Check docs spelling |
| 33 |
run: git diff origin/dev --name-only --diff-filter=ACMRTUXB | npx -y cspell lint --language-id=cpp --no-progress --no-summary --show-context --show-suggestions --relative --color --file-list stdin --no-must-find-file |
| 34 |
|