From 613e3739ac76e58f346754ffb76fdb3c46654fbf Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sat, 4 Nov 2023 16:59:07 -0400 Subject: [PATCH] ci: Add "codespell" GitHub Actions workflow --- .codespellignore | 1 + .github/workflows/codespell.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .codespellignore create mode 100644 .github/workflows/codespell.yml diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 0000000..fb66a00 --- /dev/null +++ b/.codespellignore @@ -0,0 +1 @@ +dependees diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..0188039 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,19 @@ +# GitHub Action to automate the identification of common misspellings in text files. +# https://github.com/codespell-project/actions-codespell +# https://github.com/codespell-project/codespell +name: codespell +on: [push, pull_request] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: codespell-project/actions-codespell@94259cd8be02ad2903ba34a22d9c13de21a74461 # v2.0 + with: + check_filenames: true + ignore_words_file: .codespellignore