From 4dc88785112a3c47eb73c0afeccb99a4c48f6afc Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 2 Mar 2024 09:40:20 -0800 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33a257111..522687271 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}