Skip to content

Commit 54d4b88

Browse files
authored
Merge pull request Place1#131 from freifunkMUC/gh-typos
Added: GitHub Action to check for typos in our code
2 parents 0d93f87 + d32218d commit 54d4b88

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/typos.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Typos"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '45 9 * * 1'
13+
14+
jobs:
15+
run:
16+
name: Spell Check with Typos
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Actions Repository
20+
uses: actions/checkout@v2
21+
22+
- name: Use custom config file
23+
uses: crate-ci/typos@master
24+
with:
25+
config: ./.typos.toml

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[files]
2+
extend-exclude = ["go.sum", "package-lock.json"]

0 commit comments

Comments
 (0)