chore: add word ordered task to CI

Added a word list ordered to the Taskfile to run as a dependency of
the `spellcheck` task to keep the .wordlist.txt file in order

Closes #310

Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
This commit is contained in:
Jonathan Gonzalez V. 2025-05-06 07:07:08 +02:00 committed by Gabriele Bartolini
parent ab398d7d30
commit 344028f73e

View File

@ -30,8 +30,16 @@ tasks:
sources: sources:
- ./**/*.go - ./**/*.go
wordlist-ordered:
desc: Order the word list file
cmds:
- LANG=C LC_ALL=C sort .wordlist.txt > .wordlist.txt.new
- mv -f .wordlist.txt.new .wordlist.txt
spellcheck: spellcheck:
desc: Run spellcheck desc: Run spellcheck
deps:
- wordlist-ordered
env: env:
# renovate: datasource=git-refs depName=spellcheck lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main # renovate: datasource=git-refs depName=spellcheck lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
DAGGER_SPELLCHECK_SHA: ba865842d907910c469d016c3ecfa009e4c66915 DAGGER_SPELLCHECK_SHA: ba865842d907910c469d016c3ecfa009e4c66915