Skip to content

Commit

Permalink
Add workflow for spell checking (#259)
Browse files Browse the repository at this point in the history
* Add workflow for automated spell checking

* enhance .typos.toml

* improve spelling.yml

---------

Co-authored-by: Viktor Szépe <[email protected]>
  • Loading branch information
IanDelMar and szepeviktor authored Oct 12, 2024
1 parent bcc7367 commit d661f9c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Spelling

on:
push:
branches:
- master
pull_request: null
workflow_dispatch: null

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
typos_check:
name: Typos
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check spelling
uses: crate-ci/typos@master
14 changes: 14 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[files]
extend-exclude = [
".git/",
"source/",
"wordpress-stubs.php",
]
ignore-hidden = false

[default.extend-identifiers]
Automattic = "Automattic"
get_post_stati = "get_post_stati"
Github = "GitHub"
Woocommerce = "WooCommerce"
Wordpress = "WordPress"

0 comments on commit d661f9c

Please sign in to comment.