
Uses https://github.com/taiki-e/install-action to install https://github.com/crate-ci/typos in CI This finds many more/different typos than https://github.com/codespell-project/codespell , while having very few false positives. Signed-off-by: John Vandenberg <jayvdb@gmail.com>
28 lines
632 B
YAML
28 lines
632 B
YAML
# A CI action that using codespell to check spell.
|
|
# .github/.codespellrc is a config file.
|
|
# .github/wordlist.txt is a list of words that will ignore word checks.
|
|
# More details please check the following link:
|
|
# https://github.com/codespell-project/codespell
|
|
name: Spellcheck
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Spellcheck
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install typos
|
|
uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: typos
|
|
|
|
- name: Spell check
|
|
run: typos --config=./.config/typos.toml
|