ci: Add spellcheck to CI

winit is a large codebase and manually checking for typos is infeasible.
This commit adds a spellcheck hook using cspell to the CI. That way we
can be sure that there are no typos in our code before we commit.

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley
2024-03-02 09:40:20 -08:00
parent 47e7d8b7fa
commit 4dc8878511

View File

@@ -7,7 +7,7 @@ on:
jobs:
fmt:
name: Check formatting
name: Tidy Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -16,6 +16,8 @@ jobs:
components: rustfmt
- name: Check Formatting
run: cargo fmt -- --check
- name: Check Spelling
run: npx -y cspell --no-progress --no-summary '**/*.rs' '**/*.md'
tests:
name: Test ${{ matrix.toolchain }} ${{ matrix.platform.name }}