From dc57ddd69105b3d4d4132edc4959484fb62ba9e9 Mon Sep 17 00:00:00 2001 From: duguorong009 <80258679+duguorong009@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:08:29 +0800 Subject: [PATCH] ci: add typo detection tool (#143) * ci: add typo detection tool * chore: fix the lint in CI file * chore: add "ba" word to list of extend-words --- .config/typos.toml | 3 +++ .github/workflows/ci.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .config/typos.toml diff --git a/.config/typos.toml b/.config/typos.toml new file mode 100644 index 00000000..db40766b --- /dev/null +++ b/.config/typos.toml @@ -0,0 +1,3 @@ +[default.extend-words] +groth = "groth" +ba = "ba" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcffefd6..1b1eb74c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,6 +112,16 @@ jobs: command: clippy args: --verbose --release --tests --all-features + typos: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use typos with config file + uses: crate-ci/typos@master + with: + config: .config/typos.toml + bench: if: github.event.pull_request.draft == false name: Bench