-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Objective Prevent typos. ## Solution Add the `typos` spell checker to CI.
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,20 @@ jobs: | |
- name: Run cargo clippy | ||
# TODO: Mark warnings as errors once all warnings are gone | ||
# run: cargo clippy -- -D warnings | ||
run: cargo clippy | ||
run: cargo clippy | ||
|
||
typos: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check for typos | ||
uses: crate-ci/[email protected] | ||
- name: Typos info | ||
if: failure() | ||
run: | | ||
echo 'To fix typos, please run `typos -w`' | ||
echo 'To check for a diff, run `typos`' | ||
echo 'You can find typos here: https://crates.io/crates/typos' | ||
echo 'if you use VSCode, you can also install `Typos Spell Checker' | ||
echo 'You can find the extension here: https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode' |