Browse Source

Add github action to codespell master on push and PRs

Yaroslav Halchenko 1 year ago
parent
commit
1cc02565b0
1 changed files with 23 additions and 0 deletions
  1. 23 0
      .github/workflows/codespell.yml

+ 23 - 0
.github/workflows/codespell.yml

@@ -0,0 +1,23 @@
+# Codespell configuration is within .codespellrc
+---
+name: Codespell
+
+on:
+  push:
+    branches: [master]
+  pull_request:
+    branches: [master]
+
+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