2022-01-01 16:49:23 +00:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
2022-09-25 21:02:57 +01:00
|
|
|
name: Spell check
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
# Controls when the workflow will run
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Trigger Codespell at a scheduled time
|
|
|
|
# * is a special character in YAML so you have to quote this string
|
|
|
|
- cron: '30 0 * * *'
|
2022-11-21 19:47:08 +00:00
|
|
|
# Triggers the workflow on push or pull request events
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - 'master'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
# - 'master'
|
|
|
|
- '*typo*'
|
|
|
|
- '*spell*'
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "Codespell"
|
|
|
|
Codespell:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-08 09:16:44 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-01-01 16:49:23 +00:00
|
|
|
|
|
|
|
- name: Check spelling errors
|
2022-12-08 19:34:50 +00:00
|
|
|
run: |
|
|
|
|
pip install codespell
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary.txt
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary_rare.txt
|
|
|
|
wget -q https://raw.githubusercontent.com/codespell-project/codespell/master/codespell_lib/data/dictionary_code.txt
|
2022-12-17 20:06:15 +00:00
|
|
|
# Add further typos to check continuously
|
2022-12-13 11:49:38 +00:00
|
|
|
echo 'behavioure->behaviour' >> dictionary.txt
|
|
|
|
echo 'blockign->blocking' >> dictionary.txt
|
|
|
|
echo 'ate->are' >> dictionary.txt
|
|
|
|
echo 'linve->live' >> dictionary.txt
|
|
|
|
echo 'actuallly->actually' >> dictionary.txt
|
|
|
|
echo 'asynchroniusly->asynchronously' >> dictionary.txt
|
2022-12-16 23:08:03 +00:00
|
|
|
echo 'seams->seems' >> dictionary.txt
|
2022-12-17 20:06:15 +00:00
|
|
|
echo 'selelction->selection' >> dictionary.txt
|
|
|
|
echo 'injectted->injected' >> dictionary.txt
|
|
|
|
echo 'prepanding->prepending' >> dictionary.txt
|
|
|
|
echo 'probablys->probably' >> dictionary.txt
|
2022-12-08 19:34:50 +00:00
|
|
|
# Only lowercase letters are allowed in --ignore-words-list
|
|
|
|
codespell --dictionary=dictionary.txt --dictionary=dictionary_rare.txt --dictionary=dictionary_code.txt \
|
|
|
|
--ignore-words-list="wil,unknwn,tolen,pevent,doubleclick,parm,parms,etcp,ois,ba,ptd,modell,namesd,stdio,uint,errorstring,ontext,atend,deque,ecounter,nmake,namess,inh,daa,varient" \
|
|
|
|
--skip="./.git,./dictionary*.txt,./Sandboxie/msgs/Text-*-*.txt,./Sandboxie/msgs/report/Report-*.txt,./SandboxiePlus/SandMan/*.ts,./Installer/Languages.iss,./Installer/isl/*.isl,./Sandboxie/common/Detours/Makefile"
|