From eee49a6e0a819539699c81e05875a31e7800ddf0 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 24 Nov 2020 17:11:28 +0530 Subject: [PATCH] ci: add codespell for spell check adding a github action to check the spelling mistakes in the code. Signed-off-by: Madhu Rajanna --- .github/workflows/codespell.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/codespell.yaml diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml new file mode 100644 index 000000000..555770b1a --- /dev/null +++ b/.github/workflows/codespell.yaml @@ -0,0 +1,27 @@ +--- +# codespell is a GitHub Actions that runs codespell tool to catch misspell +# Reference https://github.com/codespell-project/actions-codespell +name: Codespell +# yamllint disable-line rule:truthy +on: + push: + tags: + - v* + branches: + - master + pull_request: + branches: + - master +jobs: + codespell: + name: codespell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: codespell + uses: codespell-project/actions-codespell@master + with: + skip: .git,./vendor + check_filenames: true + ignore_words_list: ExtraVersion,extraversion,ba + check_hidden: true