]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: refactor spelling check
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 7 Jan 2022 09:42:54 +0000 (14:42 +0500)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Jan 2022 13:42:33 +0000 (14:42 +0100)
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

.github/workflows/codespell.yml

index 955560a0a9c1898ac3788d78f8cb8b8cca04992a..3b31141357a4ad18574a8c95056c81c14123e010 100644 (file)
@@ -12,12 +12,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
-    - name: Install codespell
-      run: sudo pip install codespell
-    - name: Run codespell
-      run: |
-        codespell \
-          -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"
+    - uses: codespell-project/codespell-problem-matcher@v1
+    - uses: codespell-project/actions-codespell@master
+      with:
+        skip: CHANGELOG,Makefile,*.fig,*.pem
+        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