Skip to content

Commit 9472df6

Browse files
committed
Add typos-action
1 parent eaf9e5d commit 9472df6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/typos.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Spell checker
2+
3+
name: Typos Action
4+
on: [pull_request]
5+
branches:
6+
- master
7+
8+
jobs:
9+
run:
10+
name: Spell Check with Typos
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Get changed files
16+
id: changed-files
17+
uses: tj-actions/[email protected]
18+
19+
- name: Check spelling
20+
uses: crate-ci/typos@master
21+
with:
22+
files: ${{ steps.changed-files.outputs.all_changed_files }}
23+
write_changes: false

_typos.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[files]
2+
extend-exclude = [
3+
".git/", # Version control files
4+
"achive/*", # Archive files
5+
]
6+
7+
# Match Inside a Word - Case Insensitive
8+
[default.extend-words]
9+
ue = "ue" # Nestopia UE
10+
sav = "sav" # .sav file extension
11+
kernal = "kernal" # Commodore's low-level Operating System

0 commit comments

Comments
 (0)