diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 000000000..7a2e50859 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +skip = Gemfile,Gemfile.lock,jekyll-assets,build +# For a list of available built-in dictionaries, see: +# https://github.com/codespell-project/codespell/tree/master/codespell_lib/data +builtin = clear,rare,informal +ignore-words-list = technic,ba,hist diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..b6964de5c --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,21 @@ +--- +name: Check for common misspellings + +on: + push: + pull_request: + branches: [develop] + +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Check spelling with codespell + # Configuration should be handled in .codespellrc as much as possible so + # that it runs similarly locally + uses: codespell-project/actions-codespell@master + with: + # Annotate the build, but don't fail it + only_warn: 1