Skip to content

Commit

Permalink
ci: add typo detection tool (#143)
Browse files Browse the repository at this point in the history
* ci: add typo detection tool

* chore: fix the lint in CI file

* chore: add "ba" word to list of extend-words
  • Loading branch information
duguorong009 authored Feb 28, 2024
1 parent bdf5aa5 commit dc57ddd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .config/typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
groth = "groth"
ba = "ba"
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc57ddd

Please sign in to comment.