Add a full spellcheck.
This commit is contained in:
parent
20a917b074
commit
d51801ac65
4 changed files with 34 additions and 40 deletions
23
.forgejo/workflows/spelling.yml
Normal file
23
.forgejo/workflows/spelling.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Spell Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check spelling
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git .
|
||||
|
||||
- name: Install codespell
|
||||
run: |
|
||||
apt-get update && apt-get install -y python3-pip
|
||||
pip install codespell
|
||||
|
||||
- name: Run codespell
|
||||
run: codespell --config .codespellrc
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
name: Spell Check with typos
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
typos:
|
||||
name: Check for typos
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
git clone --depth 1 https://token:${{ secrets.ACTIONS_TOKEN }}@gugulet.hu/technical/git/g_it/site.git .
|
||||
cd site || true
|
||||
|
||||
- name: Install Rust and typos
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source $HOME/.cargo/env
|
||||
cargo install typos-cli
|
||||
|
||||
- name: Run typos
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
typos
|
||||
Loading…
Add table
Add a link
Reference in a new issue