From 4120195c531a210cfecd9a5a1a2e36258a86332a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 8 Aug 2023 10:40:57 +0200 Subject: [PATCH] Check for typos in CI --- .github/workflows/CI.yml | 12 ++++++++++++ .typos.toml | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 .typos.toml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1903b9c4f7..db6e5eab4d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -217,3 +217,15 @@ jobs: - name: Check dependency tables run: | cargo sort --workspace --grouped --check + + typos: + name: Spell Check with Typos + runs-on: ubuntu-latest + if: github.event_name == 'push' || !github.event.pull_request.draft + + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v3 + + - name: Check the spelling of the files in our repo + uses: crate-ci/typos@v1.16.2 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000000..5e8cd2acce --- /dev/null +++ b/.typos.toml @@ -0,0 +1,4 @@ +[default.extend-identifiers] +# Typos in previous type names, mentioned in changelog +DefaultOnFailedUpdgrade = "DefaultOnFailedUpdgrade" +OnFailedUpdgrade = "OnFailedUpdgrade"