ci: add codespell for spell check

adding a github action to check the spelling
mistakes in the code.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2020-11-24 17:11:28 +05:30 committed by Madhu Rajanna
parent 8d08e8b37e
commit eee49a6e0a

27
.github/workflows/codespell.yaml vendored Normal file
View File

@ -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