Add check_typo job (#9361)

To block merging pull requests which contain typo automatically.
This commit is contained in:
Kenichi Omichi
2022-10-07 18:21:53 +09:00
committed by GitHub
parent befde271eb
commit 24632ae81b
9 changed files with 26 additions and 7 deletions

12
tests/scripts/check_typo.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# cd to the root directory of kubespray
cd $(dirname $0)/../../
rm ./misspell*
set -e
wget https://github.com/client9/misspell/releases/download/v0.3.4/misspell_0.3.4_linux_64bit.tar.gz
tar -zxvf ./misspell_0.3.4_linux_64bit.tar.gz
chmod 755 ./misspell
git ls-files | xargs ./misspell -error