CI: refactor spelling check

let us switch to codespell github actions instead of invocation from cmdline.
also, "ifset,thrid,strack,ba,chck,hel,unx,mor" added to whitelist, those are
variable names and special terms widely used in HAProxy
This commit is contained in:
Ilya Shipitsin 2022-01-07 14:42:54 +05:00 committed by Willy Tarreau
parent df91cbd584
commit 6569de2b88

View File

@ -12,12 +12,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install codespell - uses: codespell-project/codespell-problem-matcher@v1
run: sudo pip install codespell - uses: codespell-project/actions-codespell@master
- name: Run codespell with:
run: | skip: CHANGELOG,Makefile,*.fig,*.pem
codespell \ ignore_words_list: ist,ists,hist,wan,ca,cas,que,ans,te,nd,referer,ot,uint,iif,fo,keep-alives,dosen,ifset,thrid,strack,ba,chck,hel,unx,mor
-c \
-q 2 \
--ignore-words-list ist,ists,hist,wan,ca,cas,que,ans,te,nd,referer,ot,uint,iif,fo,keep-alives,dosen \
--skip="CHANGELOG,Makefile,*.fig,*.pem"