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