From ddec9345c11a5f4caf7de06890c959be97e3f742 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sun, 25 Feb 2024 09:43:10 +0100 Subject: [PATCH] Add typos to CI --- .github/workflows/ci.yml | 10 ++++++++++ .github/workflows/typos.toml | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dcbdffa..8c1ecc60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,3 +102,13 @@ jobs: with: command: clippy args: --all-targets --all-features -- -D warnings + + 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: .github/workflows/typos.toml diff --git a/.github/workflows/typos.toml b/.github/workflows/typos.toml new file mode 100644 index 00000000..7983df75 --- /dev/null +++ b/.github/workflows/typos.toml @@ -0,0 +1,7 @@ +[default] +extend-ignore-identifiers-re = [ +] + +[default.extend-words] +# Don't correct the surname "Teh" +groth = "groth"