From 34085f37b8b6055c81080805fb7cbaee3300ebd5 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Fri, 8 Nov 2024 13:08:53 +0700 Subject: [PATCH] Add typos check to CI --- .github/workflows/typo-check.yml | 19 +++++++++++++++++++ _typos.toml | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/typo-check.yml create mode 100644 _typos.toml diff --git a/.github/workflows/typo-check.yml b/.github/workflows/typo-check.yml new file mode 100644 index 000000000..de612025b --- /dev/null +++ b/.github/workflows/typo-check.yml @@ -0,0 +1,19 @@ +name: Check for typos + +on: + merge_group: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + check-typos: + name: "Spell-check repository source" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Run spell-check + uses: crate-ci/typos@master diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 000000000..c58a7cc09 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,8 @@ +[default] +extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"] + +[default.extend-identifiers] +iNdEx = "iNdEx" + +[files] +extend-exclude = ["**/go.mod", "**/go.sum", "**/*.pb.go"]