Skip to content

Commit 8fbb6bd

Browse files
committed
Add typos-action
1 parent eaf9e5d commit 8fbb6bd

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/typos.yml

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