diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000000..1ba88b7181 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,21 @@ +# Spell checker + +name: Typos Action +on: [pull_request] + +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