Skip to content

Commit

Permalink
feat: spell check on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Jan 29, 2024
1 parent db2e0e0 commit 53bfa02
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useGitignore": true,
"version": "0.2",
"language": "en",
"words": [

]
}
2 changes: 0 additions & 2 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Conventional Commits

on:
pull_request:
push:
branches: [development]

jobs:
conventional-commits:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Spell Check

on:
push:

jobs:
spellcheck:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.10.0'

- name: Install cspell
run: yarn add cspell

- name: Run cspell
run: cspell "src/**/*.{ts,json}"
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
"*.ts": [
"yarn prettier --write",
"eslint --fix"
],
"src/**.{ts,json}": [
"cspell"
]
},
"commitlint": {
Expand Down

0 comments on commit 53bfa02

Please sign in to comment.