diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55b62dfdf..949a6ff20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,18 @@ jobs: command: fmt args: --all -- --check + typos: + name: Spell Check with Typos + needs: [style] + runs-on: ubuntu-latest + + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v2 + + - name: Check the spelling of the files in our repo + uses: crate-ci/typos@master + clippy: name: Run clippy needs: [style] diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..0ccb29c56 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,10 @@ +[default.extend-words] +# Remove this once base64 gets correctly ignored by typos +# Or if we're able to ignore certain lines. +Fo = "Fo" +BA = "BA" + +[files] +# Our json files contain a bunch of base64 encoded ed25519 keys which aren't +# automatically ignored, we ignore them here. +extend-exclude = ["*.json"]