From 8fbb6bd9fee40d8fecac9c8e476a15e7fda22b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Via=C4=8Das=C5=82a=C5=AD=20Chalikin?= Date: Tue, 17 Dec 2024 02:23:58 +0300 Subject: [PATCH] Add typos-action --- .github/workflows/typos.yml | 24 ++++++++++++++++++++++++ _typos.toml | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/typos.yml create mode 100644 _typos.toml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000000..16f627d6b8 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,24 @@ +# Spell checker + +name: Typos Action + +on: + pull_request: + branches: [master] + +jobs: + run: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v45.0.2 + + - name: Check spelling + uses: crate-ci/typos@master + with: + files: ${{ steps.changed-files.outputs.all_changed_files }} + write_changes: false diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000000..63afe15f0a --- /dev/null +++ b/_typos.toml @@ -0,0 +1,11 @@ +[files] +extend-exclude = [ + ".git/", # Version control files + "achive/*", # Archive files +] + +# Match Inside a Word - Case Insensitive +[default.extend-words] +ue = "ue" # Nestopia UE +sav = "sav" # .sav file extension +kernal = "kernal" # Commodore's low-level Operating System