From 52e72fe812dfb9dee7eb4eb5c00eb93f7033aa45 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 24 Nov 2023 09:01:58 +0100 Subject: [PATCH] CI: codespell Closes #635 --- .github/scripts/codespell-ignore.txt | 13 +++++++++++ .github/workflows/codespell.yml | 33 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/scripts/codespell-ignore.txt create mode 100644 .github/workflows/codespell.yml diff --git a/.github/scripts/codespell-ignore.txt b/.github/scripts/codespell-ignore.txt new file mode 100644 index 00000000..5c4ca574 --- /dev/null +++ b/.github/scripts/codespell-ignore.txt @@ -0,0 +1,13 @@ +# Copyright (C) The c-ares project and its contributors +# +# SPDX-License-Identifier: MIT +aci +sais +aas +acter +msdos +statics +firey +bre +ba +fo diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..13eb5356 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,33 @@ +# Copyright (C) The c-ares project and its contributors +# +# SPDX-License-Identifier: MIT + +name: Codespell + +on: + push: + branches: + - main + paths: + - 'src/**' + - 'include/**' + pull_request: + branches: + - main + - 'src/**' + - 'include/**' + +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: install + run: | + sudo apt-get update + sudo apt-get install codespell + + - name: spellcheck + run: codespell -I .github/scripts/codespell-ignore.txt include src