mirror of
https://github.com/logos-messaging/specs.git
synced 2026-01-02 06:03:08 +00:00
Incremental spellcheck action (#55)
* chore: add incremental spellcheck * chore: upgrade repo wide spellcheck
This commit is contained in:
parent
25e3f5a09a
commit
af75a3c590
28
.github/workflows/spelling-incremental.yml
vendored
Normal file
28
.github/workflows/spelling-incremental.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Spellcheck(Incremental)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
spelling:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Get all changed markdown files
|
||||
uses: tj-actions/changed-files@v45
|
||||
id: changed_files
|
||||
with:
|
||||
files: |
|
||||
**.md
|
||||
|
||||
- name: Run Spellcheck
|
||||
id: spellcheck
|
||||
uses: rojopolis/spellcheck-github-actions@v0
|
||||
with:
|
||||
task_name: Markdown
|
||||
source_files: ${{ steps.changed_files.outputs.all_changed_files }}
|
||||
config_path: .spellcheck.yml
|
||||
23
.github/workflows/spelling.yml
vendored
23
.github/workflows/spelling.yml
vendored
@ -1,25 +1,18 @@
|
||||
name: Spellcheck
|
||||
name: Spellcheck(Repo)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
schedule:
|
||||
- cron: "0 0 * * 2" # Every Tuesday
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
spellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install aspell
|
||||
run: sudo apt-get install -y aspell aspell-en
|
||||
|
||||
- name: Run spellcheck
|
||||
uses: igsekor/pyspelling-any@v1.0.4
|
||||
- name: Run Spellcheck
|
||||
uses: rojopolis/spellcheck-github-actions@v0
|
||||
with:
|
||||
args: "-c ./spellcheck.yaml"
|
||||
|
||||
task_name: Markdown
|
||||
config_path: .spellcheck.yml
|
||||
|
||||
17
.spellcheck.yml
Normal file
17
.spellcheck.yml
Normal file
@ -0,0 +1,17 @@
|
||||
matrix:
|
||||
- name: Markdown
|
||||
sources:
|
||||
- '**/*.md'
|
||||
expect_match: false # false -> supress errors if no markdown files were edited
|
||||
aspell:
|
||||
lang: en
|
||||
dictionary:
|
||||
wordlists:
|
||||
- .wordlist.txt
|
||||
encoding: utf-8
|
||||
pipeline:
|
||||
- pyspelling.filters.markdown
|
||||
- pyspelling.filters.text
|
||||
default_encoding: utf-8
|
||||
suggest: true
|
||||
|
||||
23
.wordlist.txt
Normal file
23
.wordlist.txt
Normal file
@ -0,0 +1,23 @@
|
||||
ALLOC
|
||||
IANA
|
||||
SHARDING
|
||||
WAKU
|
||||
Waku
|
||||
danielkaiser
|
||||
creativecommons
|
||||
github
|
||||
GITHUB
|
||||
https
|
||||
iana
|
||||
md
|
||||
rfc
|
||||
RFC
|
||||
www
|
||||
DHT
|
||||
DoS
|
||||
GossipSub
|
||||
gossipsub
|
||||
libp2p
|
||||
pubsub
|
||||
subnets
|
||||
ZXCV
|
||||
@ -1,40 +0,0 @@
|
||||
matrix:
|
||||
- name: markdown
|
||||
sources:
|
||||
- '**/*.md'
|
||||
default:
|
||||
dictionary:
|
||||
- en_US
|
||||
- en_GB
|
||||
encoding: utf-8
|
||||
pipeline:
|
||||
- pyspelling.filters.markdown:
|
||||
extensions:
|
||||
- .md
|
||||
- pyspelling.filters.text
|
||||
sources:
|
||||
- '**/*.md'
|
||||
suggest: true
|
||||
whitelist:
|
||||
- ALLOC
|
||||
- IANA
|
||||
- SHARDING
|
||||
- WAKU
|
||||
- Waku
|
||||
- danielkaiser
|
||||
- creativecommons
|
||||
- github
|
||||
- GITHUB
|
||||
- https
|
||||
- iana
|
||||
- md
|
||||
- rfc
|
||||
- RFC
|
||||
- www
|
||||
- DHT
|
||||
- DoS
|
||||
- GossipSub
|
||||
- gossipsub
|
||||
- libp2p
|
||||
- pubsub
|
||||
- subnets
|
||||
Loading…
x
Reference in New Issue
Block a user