aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/codespell.yml
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2024-04-05 16:51:57 +0200
committerGitHub <noreply@github.com>2024-04-05 15:51:57 +0100
commit28b0b490f93fe9f7964d0593b9ba600f4b24663e (patch)
tree628f48458d142f61aa70192fa2b36778846fb3ca /.github/workflows/codespell.yml
parentperf(dotfiles): cache aliases and read straight from file (#1918) (diff)
downloadatuin-28b0b490f93fe9f7964d0593b9ba600f4b24663e.zip
chore(ci): Add codespell support (config, workflow) and make it fix some typos (#1916)
* Add github action to codespell main on push and PRs * Add rudimentary codespell config * ignore crate, inbetween etc * [DATALAD RUNCMD] run codespell throughout fixing typo automagically but ignoring the failure due to ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w || :", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ * [DATALAD RUNCMD] Do interactive fixing of leftover ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 2", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
Diffstat (limited to '.github/workflows/codespell.yml')
-rw-r--r--.github/workflows/codespell.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 00000000..7c9eafb1
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,23 @@
+# Codespell configuration is within .codespellrc
+---
+name: Codespell
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+permissions:
+ contents: read
+
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Codespell
+ uses: codespell-project/actions-codespell@v2